Toast
Non-blocking notifications. Use the built-in ToastViewport or compose ToastRoot/Title/Description/Close with a raw base-ui Provider.
ToastProvider
base-ui docs ↗Drop-in provider that wires limit defaults to the chosen viewport variant.
Use this instead of base-ui's Toast.Provider when using ToastViewport.
| Prop | Type | Default |
|---|---|---|
| variant | "stacked" | "list" | list |
Layout style for the viewport. | ||
| limit | number | — |
Maximum number of toasts shown at once. | ||
| timeout | number | — |
Auto-dismiss delay in milliseconds. | ||
ToastViewport
base-ui docs ↗Renders and manages toast notifications. Supports "stacked" (Sonner-style
fanned cards) and "list" (vertically stacked, each fully visible) layouts.
| Prop | Type | Default |
|---|---|---|
| variant | "stacked" | "list" | list |
"stacked" — toasts fan out behind each other like Sonner. "list" — toasts stack vertically, each fully visible (default behaviour). | ||
| limit | number | — |
Maximum number of toasts shown at once. | ||
Styled Parts
base-ui docs ↗Pre-styled wrappers around the corresponding base-ui parts. All base-ui props are forwarded.
CSS Class Names
Available as keys on the ToastStyles object. Each key maps to a hashed CSS module class name at runtime.
closecontentdescriptioniconicon-erroricon-infoicon-successicon-warningtitletoasttoast-errortoast-infotoast-stackedtoast-successtoast-warningviewportviewport-listviewport-stacked