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
ToastProvidertakes every prop ofRadix Toast.Provider.ToastViewporttakes every prop ofRadix Toast.Viewport.ToastTitletakes every prop ofRadix Toast.Title.ToastDescriptiontakes every prop ofRadix Toast.Description.ToastActiontakes every prop ofRadix Toast.Action.