name + email + message form on a surface card.

Live preview

Say hello

I reply within two days.

Install

From your site folder, run:

jprot add ContactCard

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

Use it inside a page

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

:::ContactCard heading="Say hello" sub="I reply within two days." button="Send message"

Props

PropTypeNote
headingstringcard heading
substringsubtitle
buttonstringsubmit text
actionstringform action ('' → demo submit)

↩ Back to all elements