Skip to content
Back in stock alert, light
Light
Back in stock alert, dark
Dark

Every state

  • Back in stock alert, default, light
    Back in stock alert, default, dark

    default

  • Back in stock alert, focus, light
    Back in stock alert, focus, dark

    focus

  • Back in stock alert, filled, light
    Back in stock alert, filled, dark

    filled

  • Back in stock alert, invalid, light
    Back in stock alert, invalid, dark

    invalid

  • Back in stock alert, sending, light
    Back in stock alert, sending, dark

    sending

  • Back in stock alert, failed, light
    Back in stock alert, failed, dark

    failed

  • Back in stock alert, subscribed, light
    Back in stock alert, subscribed, dark

    subscribed

  • Back in stock alert, no-variant, light
    Back in stock alert, no-variant, dark

    no-variant

Props

PropTypeDefaultWhat it does
idstring"back-in-stock-email"Id of the email input; the error and note ids hang off it.
productNamestring"Speckled jug"Named in the text.
variantstring | null"2 litres"The sold-out option. Null: the product as a whole.
titlestring"Sold out for now"The notice's first line.
labelstring"Email"Field label.
buttonLabelstring"Notify me"Button text.
notestring | null"One email when it's back. No newsletter."A promise under the field. Null hides it.
defaultEmailstring""Start with an address in the field.
subscribedstring | nullnullThe address already signed up; shows the done state.
onSubscribe(email: string) => Promise<void>–Signs the address up; reject to show a retry message.
classNamestring–Extra classes on the wrapper.

More commerce parts

All 19
commerce-02 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