Skip to content
Signup with topics, light
Light
Signup with topics, dark
Dark

Every state

  • Signup with topics, default, light
    Signup with topics, default, dark

    default

  • Signup with topics, hover, light
    Signup with topics, hover, dark

    hover

  • Signup with topics, focus, light
    Signup with topics, focus, dark

    focus

  • Signup with topics, chosen, light
    Signup with topics, chosen, dark

    chosen

  • Signup with topics, no-topic, light
    Signup with topics, no-topic, dark

    no-topic

  • Signup with topics, invalid, light
    Signup with topics, invalid, dark

    invalid

  • Signup with topics, submitting, light
    Signup with topics, submitting, dark

    submitting

  • Signup with topics, done, light
    Signup with topics, done, dark

    done

  • Signup with topics, disabled, light
    Signup with topics, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring;"newsletter-topics"Prefix for the ids inside.
actionstring;"/newsletter/subscribe"Where the form posts when there is no `onSubscribe`.
legendstring;"What would you like to hear about?"Legend.
legendHintstring | null;"Choose one or more. You can change this in any email."A line under the legend. Null: none.
topicsNewsletterFieldTopic[];[ { id: "releases", title: "Release notes", detail: "What changed, once a month", }, { id: "guides", title: "Guides",…Topics.
defaultTopicsstring[];[]Ids of the topics chosen at the start.
topicsErrorTextstring;"Choose at least one topic."Shown when no topic is chosen.
emailLabelstring;"Email address"Email label.
placeholderstring;"you@example.com"Placeholder.
defaultValuestring;""The address in the field at the start.
invalidTextstring;"Enter an email address, like name@example.com."Shown when the address is empty or not an address.
submitLabelstring;"Subscribe"Submit label.
submittingLabelstring;"Subscribing…"Submitting label.
frequencystring;"Only the topics you chose. Unsubscribe any time."How often it comes, and that you can stop.
privacyLabelstring;"Privacy"Privacy label.
privacyHrefstring;"#privacy"Privacy href.
errorTextstring;Shown when `onSubscribe` fails; the choices stay.
doneTextstring;"Almost done: open the email we just sent to confirm."Shown in place of the consent line once `onSubscribe` succeeded.
onSubscribe( subscription: NewsletterFieldTopicsSubscription, ) => 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
newsletter-field-03 is in UI ProGet UI Pro, €199

Preview

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

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