A toast is like an alert box that is only shown for a couple of seconds when something happens (i.e. when a user clicks on a button, submits a form, etc.).
In this example, we use the .show class to always show the toast by default. You can close it by clicking on the close (x) icon inside the toast header.
Some text inside the toast body
In this example, we use a button to show the toast message.
Click the button below to show a toast (positioned with our utilities in the lower right corner) that has been hidden by default.
Toasts are slightly translucent to blend in with what’s below them.
You can stack toasts by wrapping them in a toast container, which will vertically add some spacing.
Customize your toasts by removing sub-components.
Hello, world! This is a toast message.
Alternatively, you can also add additional controls and components to toasts.
Building on the above example, you can create different toast color schemes with the color and background utilities.
Place toasts with custom CSS as you need them.