Sha256: ff819404942d07e37500dc295d60e8d4fe272879b9bda8c11a453f04c1541335

Contents?: true

Size: 857 Bytes

Versions: 2

Compression:

Stored size: 857 Bytes

Contents

<div
  class="
    rounded inline-block px-3 py-2
    <%= SCHEMES.fetch(@scheme.to_sym).join(' ') %>
  "
  data-controller="<%= stimulus_id %>"
  data-<%= stimulus_id %>-closing-class="transform opacity-0 transition duration-500"
  data-<%= stimulus_id %>-transition-value="500"
  role="dialog"
  aria-label="<%= t(".#{@scheme}_label") %>"
  aria-live="polite"
>
  <%= icon_tag(@icon, class: 'inline-block w-[1.125rem] h-[1.125rem] mr-3 fill-current') if @icon %>

  <p class="inline-block body-tiny-bold"><%= @text %></p>

  <button
    class="inline-block ml-3 align-text-bottom"
    title="<%= t('.close_text') %>"
    data-action="<%= stimulus_id %>#close"
    aria-label="<%= t('.close_text') %>"
    data-<%= stimulus_id %>-target="closeButton"
  >
    <%= icon_tag('close-line', class: "w-[1.125rem] h-[1.125rem] fill-current") %>
  </button>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_admin-0.0.2 app/components/solidus_admin/ui/toast/component.html.erb
solidus_admin-0.0.1 app/components/solidus_admin/ui/toast/component.html.erb