

Every state


default


replying


sending


sent


initials


focus
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "toast-rich" | unique on the page; the title, message and field ids hang off it. |
| name | string | "Nadia Haddad" | who did it. |
| avatarSrc | string | "/components/people/nadia.webp" | a photo path, e.g. "/components/people/nadia.webp"; initials show while it loads or if it fails. |
| action | string | "commented on" | what they did, e.g. "commented on". |
| target | string | "Spring catalogue" | what they did it on, e.g. "Spring catalogue". |
| message | string | "Love the new layout. Can we swap the cover photo for the one from the beach shoot before it goes to print?" | their words, quoted; long messages fold to two lines. |
| meta | string | "Just now" | a short time line, e.g. "Just now". |
| viewHref | string | "#comment" | View href. |
| viewLabel | string | "View" | View label. |
| replyLabel | string | "Reply" | Reply label. |
| onReply | (text: string) => Promise<void> | void | simulateReply | sends the reply; the toast shows "Sending" until it settles. |
| 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. |
| className | string | – | Class name. |
More toasts
All 7toast-04 is in UI ProGet UI Pro, €199


