//
A succinct message that is displayed temporarily.
bun add xiod-ui1import { AnchoredToastProvider, ToastProvider } from "xiod-ui/toast";1<AnchoredToastProvider>2 <ToastProvider />3</AnchoredToastProvider>| Prop | Type | Default | Description |
|---|---|---|---|
closeButton | boolean| undefined | false | |
timeout | number| undefined | 5000 | The default amount of time (in ms) before a toast is auto dismissed. A value of `0` will prevent the toast from being dismissed automatically. |
limit | number| undefined | 3 | The maximum number of toasts that can be displayed at once. When the limit is exceeded, the oldest toasts are marked as `limited` (via the `data-limited` attribute) rather than removed, so they can be hidden or animated out. |
toastManager | ToastManager<any>| undefined | - | A global manager for toasts to use outside of a React component. |
| Prop | Type | Default | Description |
|---|---|---|---|
position | ToastPosition| undefined | bottom-right | |
closeButton | boolean| undefined | false | |
timeout | number| undefined | 5000 | The default amount of time (in ms) before a toast is auto dismissed. A value of `0` will prevent the toast from being dismissed automatically. |
limit | number| undefined | 3 | The maximum number of toasts that can be displayed at once. When the limit is exceeded, the oldest toasts are marked as `limited` (via the `data-limited` attribute) rather than removed, so they can be hidden or animated out. |
toastManager | ToastManager<any>| undefined | - | A global manager for toasts to use outside of a React component. |