Toasts
Basic example
To encourage extensible and predictable toasts, we recommend a header and body. Toast headers use display: flex
, allowing easy alignment of content thanks to our margin and flexbox utilities.
Beyonder Admin
23 mins ago Hello, world! This is a toast message.
Live example
Click the button below to show a toast (positioned with our utilities in the lower right corner) that has been hidden by default.
Stacking
You can stack toasts by wrapping them in a toast container, which will vertically add some spacing.
Beyonder Admin
just now See? Just like this.
Beyonder Admin
2 seconds ago Heads up, toasts will stack automatically
Custom content
Customize your toasts by removing sub-components, tweaking them with utilities, or by adding your own markup.
Hello, world! This is a toast message.
Hello, world! This is a toast message.
Color schemes
Building on the above example, you can create different toast color schemes with our color and background utilities.
Hello, world! This is a toast message.