fake file card with a download button.
Download demo
Install
From your site folder, run:
jprot add DownloadCardThat 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
| Prop | Type | Note |
|---|---|---|
name | string | file name |
size | string | file size |
label | string | button text |
url | string | href ('' → inert) |