ghost button with a border; pairs well with PrimaryButton.

Live preview

Learn more

Install

From your site folder, run:

jprot add OutlineButton

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

Use it inside a page

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

:::OutlineButton label="Learn more" url="/blog"

Props

PropTypeNote
labelstringbutton text
urlstringhref target

↩ Back to all elements