Skip to content

Newsletter

Built on the NewsletterForm component. The form posts to your mailing list provider; after it responds, render the section again with state to show the result. No JavaScript is involved.

Release notes by email

One email when a version ships, with what changed.

  • title: required; text and eyebrow optional
  • layout: centered (default), split (text start, form end)
  • surface: light, alternate (default), brand, dark
  • consent: label for a required consent checkbox
  • action, label, placeholder, button: passed to the form
  • state: success replaces the form with a success Notice; error shows a critical Notice above the form (data-state)
  • successTitle, successText, errorTitle, errorText: the Notice copy
  • id: prefix for field ids, needed when a page has more than one signup
<Newsletter
title="Release notes by email"
text="One email when a version ships, with what changed."
action="https://lists.example.com/subscribe"
consent="I agree to receive emails and accept the privacy policy."
/>
layout="split" surface="brand"

Newsletter

Stay in the loop

New pieces and changes to the library, as they land.

state="success" surface="dark"

Release notes by email

One email when a version ships.

You're subscribed

Thanks for signing up. Check your inbox to confirm your email address.
state="error" layout="split" surface="light"

Release notes by email

One email when a version ships.