Toast
Display lightweight notification messages for success, warning, and status feedback.
x-t-toast
Preview and Examples
Saved
Your component settings were saved successfully.Heads up
You have 3 pending content updates.<x-t-toast title="Saved" icon="<i class='fa-solid fa-circle-check'></i>" variant="success" shadow dismissible> Your component settings were saved successfully.</x-t-toast> <x-t-toast title="Heads up" icon="<i class='fa-solid fa-triangle-exclamation'></i>" variant="warning" rounded> You have 3 pending content updates.</x-t-toast>
Attributes
| Name | Type | Options | Description |
|---|---|---|---|
| accent | boolean |
true
false
|
Adds an accent |
| border | boolean |
true
false
|
Adds a border |
| dismissible | boolean |
true
false
|
Adds a close button |
| full | boolean |
true
false
|
Makes full width |
| hollow | boolean |
true
false
|
Removes background colour |
| icon | string |
string
|
Adds an icon |
| ring | boolean |
true
false
|
Adds a ring |
| rounded | boolean |
true
false
|
Adds rounded corners |
| shadow | boolean |
true
false
|
Adds a shadow |
| size | string |
xs
sm
md
lg
xl
2xl
|
Controls component scale |
| title | string |
string
|
Adds a title |
| variant | string |
default
brand
primary
secondary
success
warning
danger
light
dark
|
A variant is like a colour palette |