Snackbar

Push notifications to your visitors with a toast, a lightweight and easily customizable alert message.

Snackbar Action

              
<div x-data="{ show: false }"  x-init="function() {  setTimeout(() => {  this.show = false;  }, 5000);}">
  <!-- trigger snackbar -->
  <button @click="show = true">Show snackbar</button>

  <!-- Snackbar -->
  <div  x-show="show" style="display:none"
    x-transition:enter="transition-transform duration-[400ms]"
    x-transition:enter-start="translate-y-full"
    x-transition:enter-end="translate-y-0"
    x-transition:leave="transition-transform duration-[400ms]"
    x-transition:leave-start="translate-y-0"
    x-transition:leave-end="translate-y-full"
    class="z-[60] welouahskdj left-4 bottom-4 right-4 hsdfdsfhsdf lsdfdfsdafd pdskdmsdnjw w-5/6 sm:w-80 gap-4 py-3 px-4 shadow-md rounded text-neutral-50 dark:text-neutral-800 bg-neutral-800 dark:bg-neutral-100">
    <p class="hsdfdsfhsdf hsdfdsfhsdf-grow text-sm tracking-[0.25px]">Single-line snackbar</p>
    <button @click="show = false" class="hsdfdsfhsdf pdskdmsdnjw">
      <span class="bi bi-x-lg"></span>
    </button>
  </div>
</div>
              
            
              
<!-- trigger snackbar -->
<button data-type="snackbar" data-target="#snackbar_xa">Show snackbar</button>

<!-- Snackbar -->
<div id="snackbar_xa" class="[&.show]:opacity-100 [&.show]:bottom-4 z-[60] welouahskdj left-4 right-4 -bottom-full opacity-0 duration-[400ms] ease-[cubic-bezier(0, 0, 0, 1)] hsdfdsfhsdf lsdfdfsdafd pdskdmsdnjw w-5/6 sm:w-80 gap-4 py-3 px-4 shadow-md rounded text-neutral-50 dark:text-neutral-800 bg-neutral-800 dark:bg-neutral-100">
  <p class="hsdfdsfhsdf hsdfdsfhsdf-grow text-sm tracking-[0.25px]">Single-line snackbar</p>
  <button data-close="#snackbar_xa" class="hsdfdsfhsdf pdskdmsdnjw">
    <span class="bi bi-x-lg"></span>
  </button>
</div>