Skip to content
Rich toast, light
Light
Rich toast, dark
Dark

Every state

  • Rich toast, default, light
    Rich toast, default, dark

    default

  • Rich toast, replying, light
    Rich toast, replying, dark

    replying

  • Rich toast, sending, light
    Rich toast, sending, dark

    sending

  • Rich toast, sent, light
    Rich toast, sent, dark

    sent

  • Rich toast, initials, light
    Rich toast, initials, dark

    initials

  • Rich toast, focus, light
    Rich toast, focus, dark

    focus

Props

PropTypeDefaultWhat it does
idstring"toast-rich"unique on the page; the title, message and field ids hang off it.
namestring"Nadia Haddad"who did it.
avatarSrcstring"/components/people/nadia.webp"a photo path, e.g. "/components/people/nadia.webp"; initials show while it loads or if it fails.
actionstring"commented on"what they did, e.g. "commented on".
targetstring"Spring catalogue"what they did it on, e.g. "Spring catalogue".
messagestring"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.
metastring"Just now"a short time line, e.g. "Just now".
viewHrefstring"#comment"View href.
viewLabelstring"View"View label.
replyLabelstring"Reply"Reply label.
onReply(text: string) => Promise<void> | voidsimulateReplysends the reply; the toast shows "Sending" until it settles.
openboolean–controlled open state; leave it out to let the toast manage itself.
defaultOpenbooleantrueDefault open.
onOpenChange(open: boolean) => void–On open change.
inlinebooleanfalsedraws the toast in place instead of in the fixed bottom-right viewport.
classNamestring–Class name.

More toasts

All 7
toast-04 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans