UNPKG

@public-ui/components

Version:

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

46 lines (21 loc) 1.45 kB
# kol-toast-container <!-- Auto Generated Below --> > **[DEPRECATED]** Will be removed in the next major version. For more information, please refer to: https://github.com/public-ui/kolibri/issues/8372 ## 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" \| undefined; onClose?: (() => void) \| undefined; }` | | #### Returns Type: `Promise<() => void>` ----------------------------------------------