Bootstrap Home

Toasts

Toast Example

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.


Toast Header

Some text inside the toast body

Open A Toast

In this example, we use a button to show the 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.


Translucent

Toasts are slightly translucent to blend in with what’s below them.


Stacking

You can stack toasts by wrapping them in a toast container, which will vertically add some spacing.


Custom Content

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.


Hello, world! This is a toast message.

Color Schemes

Building on the above example, you can create different toast color schemes with the color and background utilities.


Hello, world! This is a toast message.

Placement

Place toasts with custom CSS as you need them.

Left Top

Center Top

Right Top

Left Middle

Center Middle

Right Middle

Left Bottom

Center Bottom

Right Bottom