Toaster
Render and organize application notifications in one region.
Basic usage
Create a store with createToaster and mount one Toaster for it. Set placement and limits on the store. Each invitation adds a notification, and the store shows up to two at a time.
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
toaster | ToasterStore | required |
variant | soft, outline | soft |
showIcon | boolean | true |
label | string | — |
mount | HTMLElement | document body |
children | notification render callback | default notification |