Bootstrap Toasts
Bootstrap Toasts are lightweight containers that show a message to the user for a short period of time. They are often used to display notifications or alerts without interrupting the user experience.
Syntax
Here is the basic syntax for creating a Bootstrap Toast:
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<strong class="mr-auto">Title</strong>
<small>Time</small>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
Message
</div>
</div>
To show the Toast, you need to use JavaScript:
$('.toast').toast('show')