

Every state


default


focus


filled


invalid


sending


failed


subscribed


no-variant
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "back-in-stock-email" | Id of the email input; the error and note ids hang off it. |
| productName | string | "Speckled jug" | Named in the text. |
| variant | string | null | "2 litres" | The sold-out option. Null: the product as a whole. |
| title | string | "Sold out for now" | The notice's first line. |
| label | string | "Email" | Field label. |
| buttonLabel | string | "Notify me" | Button text. |
| note | string | null | "One email when it's back. No newsletter." | A promise under the field. Null hides it. |
| defaultEmail | string | "" | Start with an address in the field. |
| subscribed | string | null | null | The address already signed up; shows the done state. |
| onSubscribe | (email: string) => Promise<void> | – | Signs the address up; reject to show a retry message. |
| className | string | – | Extra classes on the wrapper. |
More commerce parts
All 19commerce-02 is in UI ProGet UI Pro, €199


