--- title: Toasts ---

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:

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

Heads up! The thing you tried to do was unsuccesfull.
As a side effect this happened.

Bad

Heads up! The following actions failed

  • validation-message 1
  • validation-message 2
  • validation-message 3
  • validation-message 4
  • validation-message 5
  • validation-message 6
  • validation-message 7
  • validation-message 8
  • validation-message 9
  • validation-message 10
  • validation-message 11
  • validation-message 12
  • validation-message 13
  • validation-message 14
  • validation-message 15
  • validation-message 16
  • validation-message 17
  • validation-message 18
  • validation-message 19
  • validation-message 20
  • validation-message 21
  • validation-message 22
  • validation-message 23
  • validation-message 24
  • validation-message 25
  • validation-message 26
  • validation-message 27
  • validation-message 28
  • validation-message 29
  • validation-message 30

Please unplug your computer, wait 30 days and try again.

This message was sponsored by Company©

Well Done! You successfully did something.
Uh oh! You did something horribly wrong amigo :-/.

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