Basic

Live

Stacking

liveStacking

Custom

solidColor

softColor

Placement

Options

Reference Details
Overview Things to know when using the toast plugin:
  • Toasts are opt-in for performance reasons, so you must initialize them yourself.
  • Toasts will automatically hide if you do not specify autohide: false.
Basic 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.
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 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.
liveStacking 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 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 utilities. Here we've added .text-bg-primary 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.
Documentations Please visit: https://getbootstrap.com/docs/5.3/components/toasts/