Toast

A short message that appears and leaves on its own.

1 example

How to use it

Copy any example below and paste it in
From markup
data-toast="Saved." with an optional data-toast-variant.
From code
Brutalism.toast('Saved.', { variant: 'success' }).
Announced
The stack is a role="status" live region, so a toast is read without stealing focus. Hovering pauses the countdown.

The four variants

Click to fire one.