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

Every state

  • Undo toast, default, light
    Undo toast, default, dark

    default

  • Undo toast, paused, light
    Undo toast, paused, dark

    paused

  • Undo toast, undoing, light
    Undo toast, undoing, dark

    undoing

  • Undo toast, undone, light
    Undo toast, undone, dark

    undone

  • Undo toast, focus, light
    Undo toast, focus, dark

    focus

Props

PropTypeDefaultWhat it does
idstring"toast-undo"unique on the page; the title and message ids hang off it.
titlestring"Conversation archived"what was just done, e.g. "Conversation archived".
messagestring"“Q4 supplier review” moved to Archive."Message.
undoneTitlestring"Moved back to Inbox"the title once the action is undone.
undoneMessagestring"“Q4 supplier review” is in your Inbox again."Undone message.
durationnumber8000milliseconds Undo stays available; the timer pauses on hover, on focus and while the page is hidden.
onUndo() => Promise<void> | voidsimulateUndoreverses the action; the toast shows "Undoing" until it settles.
onExpire() => void–called when the timer runs out and the action stands.
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.
undoLabelstring"Undo"Undo label.
classNamestring–Class name.

More toasts

All 7
toast-06 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