fake file card with a download button.

Live preview

starter.zip
2.4 MB
Download demo

Install

From your site folder, run:

jprot add DownloadCard

That downloads the self-contained component into theme/components/DownloadCard.js,

where it is picked up automatically — the same way as any built-in component.

To remove it later, just delete that file.

Use it as a homepage section

Add an entry to the sections: list in jprot.config.js:

sections: [
  { component: 'DownloadCard', title: 'DownloadCard' },
]

Use it inside a page

On its own line in any Markdown file, passing the props:

:::DownloadCard name="starter.zip" size="2.4 MB" label="Download demo"

Props

PropTypeNote
namestringfile name
sizestringfile size
labelstringbutton text
urlstringhref ('' → inert)

↩ Back to all elements