Components
Toaster
Renders the toasts queued with toast(): light bordered cards on the neutral
popover surface, each with a per-type coloured icon and a close button,
stacked at the bottom centre by default. Built on Base UI Toast.
Usage
Best practices
Use toasts for transient, auto-dismissing notifications; a persistent inline message is an
Alert.Mount
<Toaster />exactly once near the app root, then fire toasts withtoast()from@instruments/materia-ui/components/toast- don't render aToasterper view.Press F6 to move focus into the toasts; hovering or focusing the stack pauses dismissal and fans it open.
Props
Also exports
- const
toast - type
ToasterPosition - interface
ToasterProps - interface
ToastOptions - interface
ToastPromiseMessages - type
ToastType