Sha256: 964ad8c5f2bd485e454db1b9a7cdaa63ce6a5b971483f2f0120438b5f833069c

Contents?: true

Size: 942 Bytes

Versions: 17

Compression:

Stored size: 942 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",
  "@navigation:complete.window": "updateDropdown" do %>
  <span x-ref="icon">
    <%= icon || lookbook_render(: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

17 entries across 17 versions & 1 rubygems

Version Path
lookbook-1.5.5 app/components/lookbook/button/component.html.erb
lookbook-1.5.4 app/components/lookbook/button/component.html.erb
lookbook-1.5.3 app/components/lookbook/button/component.html.erb
lookbook-1.5.2 app/components/lookbook/button/component.html.erb
lookbook-1.5.1 app/components/lookbook/button/component.html.erb
lookbook-1.5.0 app/components/lookbook/button/component.html.erb
lookbook-1.4.5 app/components/lookbook/button/component.html.erb
lookbook-1.4.4 app/components/lookbook/button/component.html.erb
lookbook-1.4.3 app/components/lookbook/button/component.html.erb
lookbook-1.4.2 app/components/lookbook/button/component.html.erb
lookbook-1.4.1 app/components/lookbook/button/component.html.erb
lookbook-1.4.0 app/components/lookbook/button/component.html.erb
lookbook-1.3.4 app/components/lookbook/button/component.html.erb
lookbook-1.3.3 app/components/lookbook/button/component.html.erb
lookbook-1.3.1 app/components/lookbook/button/component.html.erb
lookbook-1.3.0 app/components/lookbook/button/component.html.erb
lookbook-1.2.1 app/components/lookbook/button/component.html.erb