Props
| Prop | Type | Default | Notes |
|---|---|---|---|
placement | top-start | top-center | top-end | bottom-start | bottom-center | bottom-end | bottom-end | Controls where the toast stack appears on screen. |
StellarUI
toast stack manager with fixed placement, item creation methods, and dedicated toast items.
Live stack
Use the controls above to create a toast on the page-level stack.
<stellar-toast placement="bottom-end">
<stellar-toast-item tone="primary" icon="mdi:check-circle-outline">
<strong>Saved</strong>
<span>Your changes were synced successfully.</span>
</stellar-toast-item>
</stellar-toast>Complete props, events, slots, and implementation notes for the shipped toast stack.
| Prop | Type | Default | Notes |
|---|---|---|---|
placement | top-start | top-center | top-end | bottom-start | bottom-center | bottom-end | bottom-end | Controls where the toast stack appears on screen. |
| Event | Source | Notes |
|---|---|---|
create() | host method | Creates and prepends a stellar-toast-item from a string payload and returns the item element. |
createFromTemplate() | host method | Clones a <template> containing one stellar-toast-item and prepends it to the stack. |
empty() | host method | Closes and removes every toast item in the stack. |
| Slot | Notes |
|---|---|
| default | One or more stellar-toast-item children already present in the stack. |