Sha256: ea4c9566270904d2e858bccce5bcee3ba94c5b435620fef5764962dd47e8a0db

Contents?: true

Size: 891 Bytes

Versions: 15

Compression:

Stored size: 891 Bytes

Contents

<%= render_component_tag tag_name,
  href: @href,
  class: [
    "block text-lookbook-icon-button-stroke focus:outline-none focus-visible:outline-none #{padding}",
    {
      "hover:text-lookbook-icon-button-stroke-hover": !@disabled,
      "cursor-[not-allowed] opacity-50": @disabled
    }
  ],
  disabled: @disabled,
  "@keydown.esc.stop": "hideDropdown" do %>
  <span x-ref="icon">
    <%= icon || render_component(:icon, name: @icon, size: icon_size, ":class": "{'animate-spin': _spinning}") %>
  </span>
  <% if @tooltip %>
    <label class="hidden" x-ref="tooltip"><%= @tooltip %></label>
  <% end %>
  <% if content %>
    <div x-ref="content"><%== content %></div>
  <% end %>
  <% if dropdown %>
    <div class="hidden" x-ref="dropdown">
      <div class="bg-white divide-y divide-lookbook-divider text-left">
        <%== dropdown %>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lookbook-1.0.8 app/components/lookbook/button/component.html.erb
lookbook-1.0.7 app/components/lookbook/button/component.html.erb
lookbook-1.0.6 app/components/lookbook/button/component.html.erb
lookbook-1.0.5 app/components/lookbook/button/component.html.erb
lookbook-1.0.4 app/components/lookbook/button/component.html.erb
lookbook-1.0.3 app/components/lookbook/button/component.html.erb
lookbook-1.0.2 app/components/lookbook/button/component.html.erb
lookbook-1.0.1 app/components/lookbook/button/component.html.erb
lookbook-1.0.0 app/components/lookbook/button/component.html.erb
lookbook-1.0.0.rc.3 app/components/lookbook/button/component.html.erb
lookbook-1.0.0.rc.2 app/components/lookbook/button/component.html.erb
lookbook-1.0.0.rc.1 app/components/lookbook/button/component.html.erb
lookbook-1.0.0.beta.8 app/components/lookbook/button/component.html.erb
lookbook-1.0.0.beta.7 app/components/lookbook/button/component.html.erb
lookbook-1.0.0.beta.6 app/components/lookbook/button/component.html.erb