<ui-toast-region>
Stacking region for toasts; created on demand by UI.toast().
Feedback · stable · since 2.0.0 · extends _UIElement
Examples
<ui-toast-region></ui-toast-region>
<ui-toast-region limit="2"></ui-toast-region>
Playground
Generated HTML
Event log
API
Attributes and properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
disabled | disabled | boolean | false | |
busy | data-ui-busy | boolean | false | |
limit | limit | number | 5 | Maximum simultaneously visible toasts. |
placement | placement | string | "bottom-end" | Screen corner. |
Methods
showToast— showToast(message, { type, duration, action }) -> { id, dismiss }.
Events
ui-toast-show— Toast shown; detail { id }.ui-toast-dismiss— Toast removed; detail { id, reason }.
Slots
None.
CSS classes
- Base class:
ui-toast-region