UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

44 lines (20 loc) 1.32 kB
# kol-toast-container <!-- Auto Generated Below --> ## Methods ### `closeAll(immediate?: boolean) => Promise<void>` Closes all toasts. #### Parameters | Name | Type | Description | | ----------- | --------- | ----------- | | `immediate` | `boolean` | | #### Returns Type: `Promise<void>` ### `enqueue(toast: Toast) => Promise<() => void>` Adds a toast to the queue. #### Parameters | Name | Type | Description | | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | | `toast` | `{ description?: string \| undefined; render?: ToastRenderFunction \| undefined; label: string; type: "default" \| "info" \| "success" \| "warning" \| "error"; variant?: "card" \| "msg" \| undefined; onClose?: (() => void) \| undefined; }` | | #### Returns Type: `Promise<() => void>` ----------------------------------------------