Skip to content

Newsletter form

A plain POST form: point action at the mailing list provider. The field and button share a row, stacking below 30rem. The email field is required and uses autocomplete="email".

  • id: prefix for the field ids (default "newsletter"); set it when a page has more than one form
  • action: form action URL (default "#")
  • label: field label (default "Email address")
  • placeholder: default "you@example.com"
  • button: button text (default "Subscribe")
  • consent: label for a required consent checkbox
  • size: compact or regular (default)
<NewsletterForm action="https://example.com/subscribe" />
With consent, size="compact"