

Every state


default


other-fix


loading


done


hover


focus
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "warning-action" | unique on the page; the heading id hangs off it. |
| title | string | "Verify your email address" | Title. |
| message | string | "We can't send order updates to sam@example.com until you confirm it's yours." | what is wrong and what it blocks, in one or two sentences. |
| actionLabel | string | "Verify email" | the one button that fixes the cause, e.g. "Verify email" or "Update card". |
| pendingLabel | string | "Sending link" | the button text while the fix runs. |
| doneTitle | string | "Verification link sent" | the title once the fix is done; it is also announced. |
| doneMessage | string | "Open the email we sent to sam@example.com and click the link. It works for 24 hours." | Done message. |
| defaultStatus | NoticeWarningActionStatus | "idle" | where it starts; "pending" and "done" show the fix running or finished. |
| onFix | () => Promise<void> | – | runs the fix; the notice shows "pending" until it resolves and "done" after. The default waits 1.5 s. |
| className | string | – | Class name. |
More notices
All 10notice-10 is in UI ProGet UI Pro, €199


