Basic

Toasts are as flexible as you need and have very little required markup. At a minimum, we require a single element to contain your “toasted” content and strongly encourage a dismiss button.

Live

Click the button the below to show as toast (positioning with our utilities in the lower right corner) that has been hidden by default with .hide.

Translucent

Toasts are slightly translucent, too, so they blend over whatever they might appear over.

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 with utilities, or adding your own markup. Here we’ve created a simpler toast by removing the default .toast-header, adding a custom hide icon from Bootstrap Icons, and using some flexbox utilities to adjust the layout.

Color schemes

Building on the above example, you can create different toast color schemes with our color and background. 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.

... Bootstrap 11 mins ago
Hello, world! This is a toast message.