Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original
Bootstrap5 Toasts
Bootstrap5 Toasts
Bootstrap5 Toasts are a lightweight notification component used to display temporary information, notifications, or warnings in the corner or bottom of a page.
Toasts are typically used to display short-term messages to users, such as success messages, error messages, warnings, or other notifications.
Toasts can be displayed in different positions on the page, including top-left, top-right, bottom-left, bottom-right, and bottom-center of the page.
How to Create a Toast
To create a toast, use the .toast class and add the .toast-header and .toast-body classes inside it to represent the title and content.
**Note:** Toasts are hidden by default. You can use .show to set display, and to close a toast, you can add it to the