Skip to content
Design System
GitHub

Transient feedback on what the user just did: 4 s, 8 s with an action, failures until dismissed. Call toast() anywhere; mount <Toaster /> once.

API reference

Generated from the types. Every part also takes className.

Toast

Also takes every prop of Radix Toast.Root.

tone
"neutral" | "success" | "danger" = "neutral"

ToastClose

Also takes every prop of Radix Toast.Close.

label
string = "Dismiss"

Toaster

label
string = "Notifications ({hotkey})"
dismissLabel
string = "Dismiss"

Other parts

  • ToastProvider takes every prop of Radix Toast.Provider.
  • ToastViewport takes every prop of Radix Toast.Viewport.
  • ToastTitle takes every prop of Radix Toast.Title.
  • ToastDescription takes every prop of Radix Toast.Description.
  • ToastAction takes every prop of Radix Toast.Action.