The toast component is used for showing a couple of seconds of a message when something happens. It works the same as an alert box.
How To Create a Toast:-
- first use toast class
- Then, add a toast-header class
- And finally use toast-body class inside it type text declare.
- Use the data-autohide=”false” attribute to show it by default toasts.