header-like hero-lite: headline with an input underneath.
Get the book
Chapter 1, free.
Install
From your site folder, run:
jprot add EmailCaptureThat downloads the self-contained component into theme/components/EmailCapture.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: 'EmailCapture', title: 'EmailCapture' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::EmailCapture title="Get the book" text="Chapter 1, free." placeholder="your email" button="Send it"Props
| Prop | Type | Note |
|---|---|---|
title | string | headline |
text | string | subline |
placeholder | string | input hint |
button | string | submit text |