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.
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
Toasts are slightly translucent, too, so they blend over whatever they might appear over.
You can stack toasts by wrapping them in a toast container, which will vertically add some spacing.
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 CoreUI Icons, and using some flexbox utilities to adjust the layout.
Alternatively, you can also add additional controls and components to toasts.