best toast plugin bootstrap 4 code example

Example 1: bootstrap toast

<!-- Bootstrap 5 Toasts -->
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
   <div class="toast-header">
      <img src="..." class="rounded me-2" alt="..." />
      <strong class="me-auto">Bootstrap</strong>
      <small>11 mins ago</small>
      <button
         type="button"
         class="btn-close"
         data-bs-dismiss="toast"
         aria-label="Close"
      ></button>
   </div>
   <div class="toast-body">Hello, world! This is a toast message.</div>
</div>

Example 2: Bootstrap 4 Toast

<div class="toast">
  <div class="toast-header">
    Toast Header
  </div>
  <div class="toast-body">
    Some text inside the toast body
  </div>
</div>

Tags:

Html Example