monospace version tag, ideal for changelogs and releases.
Install
From your site folder, run:
jprot add VersionBadgeThat downloads the self-contained component into theme/components/VersionBadge.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: 'VersionBadge', title: 'VersionBadge' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::VersionBadge label="v2.4.0" tone="new"Props
| Prop | Type | Note | ||
|---|---|---|---|---|
label | string | version text | ||
tone | string | new \ | stable \ | beta |