bold accent button with a few sizes.

Live preview

Get started

Install

From your site folder, run:

jprot add PrimaryButton

That downloads the self-contained component into theme/components/PrimaryButton.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: 'PrimaryButton', title: 'PrimaryButton' },
]

Use it inside a page

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

:::PrimaryButton label="Get started" url="/about" size="lg"

Props

PropTypeNote
labelstringbutton text
urlstringhref target
sizestringsm \md \lg

↩ Back to all elements