

Every state


default


hover


focus


sending


cooldown


resend-error


change


change-invalid


changed


no-hint
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string; | "newsletter-confirm" | Prefix for the ids inside. |
| string; | "maren.vos@example.com" | The address the link went to. | |
| title | string; | "Check your inbox" | Title text. |
| sentText | string; | "We sent a link to" | Before the address. |
| instruction | string; | After the address: what to do with the email. | |
| spamHint | string | null; | Where else to look. Null: no hint. | |
| resendLabel | string; | "Send the link again" | Resend label. |
| resendingLabel | string; | "Sending…" | Resending label. |
| cooldownLabel | string; | "Send again in {time}" | The button while it waits; `{time}` becomes the time left, as 0:28. |
| cooldownSeconds | number; | 30 | Seconds to wait after a resend before the next one. |
| resentText | string; | "A new link is on its way to {email}." | Said once a new link is on its way; `{email}` becomes the address. |
| resendErrorText | string; | "We couldn’t send it just now. Try again in a moment." | Said when sending again failed. |
| changeLabel | string; | "Change the address" | Change label. |
| newEmailLabel | string; | "New email address" | New email label. |
| saveLabel | string; | "Send to this address" | Save label. |
| savingLabel | string; | "Sending…" | Saving label. |
| cancelLabel | string; | "Cancel" | Cancel label. |
| invalidText | string; | "Enter an email address, like name@example.com." | Shown when the new address is empty or not an address. |
| changeErrorText | string; | "We couldn’t change it just now. Try again in a moment." | Shown when changing the address failed. |
| resend | (email: string) => Promise<void>; | waitLocally | Sends the link again; reject (or throw) when it failed. Default: a short local wait. |
| changeEmail | (email: string, previous: string) => Promise<void>; | waitLocally | Moves the signup to a new address and sends the link there; reject when it failed. Default: a short local wait. |
| onEmailChange | (email: string) => void; | – | Called with the address once it changed. |
| className | string; | – | Extra classes on the outer element. |
More newsletter fields
All 3newsletter-field-01 is in UI ProGet UI Pro, €199

