slim dismissible banner for launches or maintenance.
New: the Catalog is live — 65 components and counting. Browse
Install
From your site folder, run:
jprot add AlertBarThat 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
| Prop | Type | Note |
|---|---|---|
text | string | message |
linkLabel | string | inline link text ('' hides) |
linkUrl | string | link target |