

Every state


default


expanded


dismissed


single


focus
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "toast-stack" | unique on the page; each toast's ids hang off it. |
| label | string | "Notifications" | what the stack is called for screen readers. |
| toasts | ToastStackItem[] | – | controlled list, newest first; leave it out to let the stack manage itself. |
| defaultToasts | ToastStackItem[] | exampleToasts | Default toasts. |
| onToastsChange | (toasts: ToastStackItem[]) => void | – | On toasts change. |
| onDismiss | (id: string) => void | – | On dismiss. |
| visible | number | 3 | how many toasts show behind the front one while collapsed. |
| inline | boolean | false | draws the stack in place instead of in the fixed bottom-right viewport. |
| className | string | – | Class name. |


