--- title: Toasts ---
Toasts are a special version of the alerts in Nodes UI. Toasts are used to give users short feedback messages.
A div with the alert class is only considered a Toast when it is placed in the page-toasts container.
Toasts comes with special rules:
8000ms)
Give it a whirl:
Toasts are specifically designed to be used only to give short feedback messages to the user. Here are some good and bad examples:
Good
Bad
Heads up! The following actions failed
Please unplug your computer, wait 30 days and try again.
This message was sponsored by Company©
This component is still missing vital documentation. Please consult nodes.js to see the Javascript configuration and methods.
Configure the toasts with scss variables:
| variable | default | description |
|---|---|---|
$toast-max-width |
400px |
The maximum width of the toasts-container (and therefore the maximum width of the toasts) |
$toast-affix-top |
$core-topbar-height + 20px |
The distance from the top of the screen, default is the height of the topbar + and additional 20px |
$toast-affix-toright |
40px |
The distance from the right of the screen |