arrow card that behaves like a big navigation link.

Live preview

Documentation

Everything, in order.

Install

From your site folder, run:

jprot add CardLink

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

Use it inside a page

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

:::CardLink title="Documentation" text="Everything, in order." url="/docs"

Props

PropTypeNote
titlestringlink label
textstringhint text
urlstringtarget

↩ Back to all elements