slim dismissible banner for launches or maintenance.

Live preview

New: the Catalog is live — 65 components and counting. Browse

Install

From your site folder, run:

jprot add AlertBar

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

Use it inside a page

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

:::AlertBar text="New: the Catalog is live — 65 components and counting." linkLabel="Browse" linkUrl="/elements"

Props

PropTypeNote
textstringmessage
linkLabelstringinline link text ('' hides)
linkUrlstringlink target

↩ Back to all elements