share buttons triggering the native share sheet.

Live preview

Install

From your site folder, run:

jprot add ShareRow

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

Use it inside a page

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

:::ShareRow title="Check this out" url="https://example.com"

Props

PropTypeNote
titlestringshare text
urlstringshared link

↩ Back to all elements