Skip to content
satin

Toast

A short, passing message about something that just happened.

    API Reference

    The Toast component wraps the Radix toast in an li element rendered by the toast() function. Mount Toaster once; then call toast(), toast.info(), toast.success(), toast.warning() or toast.error() with a title and these options.

    PropTypeDefault
    title
    string
    —
    description
    string
    —
    intent
    "neutral""info""success""warning""error"
    "neutral"
    action
    { label, onClick }
    —
    closeButton
    boolean
    true
    icon
    boolean
    true
    duration
    number
    5000