standalone subscribe card with a pitch and success hint.
The Sunday Roundup
One email, five links worth your time.
No spam. Unsubscribe anytime.
Install
From your site folder, run:
jprot add NewsletterBoxThat downloads the self-contained component into theme/components/NewsletterBox.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: 'NewsletterBox', title: 'NewsletterBox' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::NewsletterBox title="The Sunday Roundup" text="One email, five links worth your time." placeholder="Email address" button="Subscribe" note="No spam. Unsubscribe anytime."Props
| Prop | Type | Note |
|---|---|---|
title | string | heading |
text | string | pitch |
placeholder | string | input hint |
button | string | submit text |
note | string | fine print |