Toasts
Push notifications to your visitors with a toast, a lightweight and easily customizable alert message.
Examples
Basic

Live example

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, tweaking them with utilities, or by adding your own markup. Here we’ve created a simpler toast by removing the default .toast-header
, adding icon from Bootstrap Icons, and using some flexbox utilities to adjust the layout.
Alternatively, you can also add additional controls and components to toasts.
Color schemes
Building on the above example, you can create different toast color schemes with our color and background utilities. Here we’ve added .bg-primary
and .text-white
to the .toast
, and then added .btn-close-white
to our close button. For a crisp edge, we remove the default border with .border-0
.
Placement
Place toasts with custom CSS as you need them. The top right is often used for notifications, as is the top middle. If you’re only ever going to show one toast at a time, put the positioning styles right on the .toast
.