monospace version tag, ideal for changelogs and releases.

Live preview

v2.4.0

Install

From your site folder, run:

jprot add VersionBadge

That 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

PropTypeNote
labelstringversion text
tonestringnew \stable \beta

↩ Back to all elements