01
Overview
Renders an email signup section with heading copy and an inline newsletter form.
Usage
02
When to use
Use when
- Collecting subscriber email addresses in a dedicated marketing section.
- Adding a lightweight signup form beneath blog or CTA content.
Avoid when
- Showing a generic call-to-action with buttons only and no data entry. Use Call to action section instead
- Collecting multi-field account or billing details. Use Form section instead
03
Examples
NewsletterSection
NewsletterSection with email capture form, helper text, and submission callback.
04
Props
| Name | Type | Default | Required | Bindable | Description |
|---|---|---|---|---|---|
as | 'section' | 'div' | 'section' | Wrapper element tag. | ||
title | text | req | Main section headline. | ||
description | text | Optional supporting copy. | |||
emailLabel | text | 'Email address' | Input label text. | ||
emailPlaceholder | text | Placeholder shown in email input field. | |||
submitLabel | text | 'Subscribe' | Submit button label. | ||
onSubmit | (email: string) => void | Callback fired after form submission with current email value. | |||
consentText | text | Optional helper/caveat text rendered under the form controls. | |||
maxWidth | 'prose' | 'narrow' | 'wide' | 'full' | 'wide' | Max width token forwarded to Container. | ||
children | snippet | Optional supplemental content below helper text. |