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

Every state

  • Error toast, default, light
    Error toast, default, dark

    default

  • Error toast, details-open, light
    Error toast, details-open, dark

    details-open

  • Error toast, retrying, light
    Error toast, retrying, dark

    retrying

  • Error toast, failed-again, light
    Error toast, failed-again, dark

    failed-again

  • Error toast, success, light
    Error toast, success, dark

    success

  • Error toast, focus, light
    Error toast, focus, dark

    focus

Props

PropTypeDefaultWhat it does
idstring"toast-error"unique on the page; the title, message and details ids hang off it.
titlestring"Payment didn’t go through"Title.
messagestring"The bank didn’t answer in time. You weren’t charged."what happened and what it means for the user, in one line.
codestring"PAY-4021"the error code support asks for, shown under Details.
referencestring"req_8f2c1a90"a request or trace id, shown under Details.
retryLabelstring"Retry"Retry label.
onRetry() => Promise<void> | voidsimulateRetrytries again; reject to keep the error, resolve to show the success line.
successTitlestring"Payment sent"Success title.
successMessagestring"€48.00 to Harbour Studio. The receipt is in your email."Success message.
openboolean–controlled open state; leave it out to let the toast manage itself.
defaultOpenbooleantrueDefault open.
onOpenChange(open: boolean) => void–On open change.
defaultDetailsOpenbooleanfalseDetails starts unfolded.
inlinebooleanfalsedraws the toast in place instead of in the fixed bottom-right viewport.
classNamestring–Class name.

More toasts

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