Skip to content
Inline signup, light
Light
Inline signup, dark
Dark

Every state

  • Inline signup, default, light
    Inline signup, default, dark

    default

  • Inline signup, hover, light
    Inline signup, hover, dark

    hover

  • Inline signup, focus, light
    Inline signup, focus, dark

    focus

  • Inline signup, filled, light
    Inline signup, filled, dark

    filled

  • Inline signup, invalid, light
    Inline signup, invalid, dark

    invalid

  • Inline signup, submitting, light
    Inline signup, submitting, dark

    submitting

  • Inline signup, error, light
    Inline signup, error, dark

    error

  • Inline signup, done, light
    Inline signup, done, dark

    done

  • Inline signup, disabled, light
    Inline signup, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring;"newsletter-email"Id of the email field; the label, consent line and messages hang off it.
actionstring;"/newsletter/subscribe"Where the form posts when there is no `onSubscribe`.
namestring;"email"Name of the email field in the post.
labelstring;"Get the product notes"Visible label.
placeholderstring;"you@example.com"Placeholder.
defaultValuestring;""The address in the field at the start.
submitLabelstring;"Subscribe"Submit label.
submittingLabelstring;"Subscribing…"Submitting label.
whatstring;"What we shipped, what is next and one tip to get more out of it."What is in it, one short sentence.
frequencystring;"One email a month."How often it comes.
unsubscribestring;"Unsubscribe any time."Unsubscribe.
privacyLabelstring;"Privacy"Privacy label.
privacyHrefstring;"#privacy"Privacy href.
invalidTextstring;"Enter an email address, like name@example.com."Shown when the address is empty or not an address.
errorTextstring;Shown when `onSubscribe` fails; the address stays in the field.
doneTextstring;"Almost done: open the email we just sent to confirm."Shown in place of the consent line once `onSubscribe` succeeded.
onSubscribe(email: string) => Promise<void>;–Subscribes on the page instead of posting; reject (or throw) when it failed. Left out: the form posts to `action`.
disabledboolean;–Disables it.
classNamestring;–Extra classes on the outer element.

More newsletter fields

All 3

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans