Lewati ke konten

Toast - JS + CSS

Toast

banner-background

<div class="ina-toast-container ina-toast-container--top-right">
  <div class="ina-toast-item">
    <div class="ina-toast ina-toast--state-default ina-toast--style-solid ina-toast--visible">
      <div class="ina-toast__icon">
        <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
          <circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"></circle>
          <path d="M12 8v4M12 16h.01" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path>
        </svg>
      </div>
      <div class="ina-toast__content">
        <div class="ina-toast__text-area">
          <p class="ina-toast__title">Toast Title</p>
        </div>
      </div>
      <button class="ina-toast__close-button" aria-label="Tutup notifikasi">
        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="ina-toast__close-icon">
          <line x1="18" y1="6" x2="6" y2="18"></line>
          <line x1="6" y1="6" x2="18" y2="18"></line>
        </svg>
      </button>
    </div>
  </div>
</div>