

Every state


default


paused


undoing


undone


focus
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "toast-undo" | unique on the page; the title and message ids hang off it. |
| title | string | "Conversation archived" | what was just done, e.g. "Conversation archived". |
| message | string | "“Q4 supplier review” moved to Archive." | Message. |
| undoneTitle | string | "Moved back to Inbox" | the title once the action is undone. |
| undoneMessage | string | "“Q4 supplier review” is in your Inbox again." | Undone message. |
| duration | number | 8000 | milliseconds Undo stays available; the timer pauses on hover, on focus and while the page is hidden. |
| onUndo | () => Promise<void> | void | simulateUndo | reverses the action; the toast shows "Undoing" until it settles. |
| onExpire | () => void | – | called when the timer runs out and the action stands. |
| open | boolean | – | controlled open state; leave it out to let the toast manage itself. |
| defaultOpen | boolean | true | Default open. |
| onOpenChange | (open: boolean) => void | – | On open change. |
| inline | boolean | false | draws the toast in place instead of in the fixed bottom-right viewport. |
| undoLabel | string | "Undo" | Undo label. |
| className | string | – | Class name. |
More toasts
All 7toast-06 is in UI ProGet UI Pro, €199


