numbered "do this first" tips for tutorials and onboarding.

Live preview

Install

From your site folder, run:

jprot add HintList

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

Use it inside a page

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

:::HintList items='["Read the quick start first.","Run jprot init in an empty folder.","Save, then refresh the browser."]'

Props

PropTypeNote
itemsarraytip strings
titlestringoptional heading

↩ Back to all elements