Sha256: 4f6eb6b34e17927f294668a9a1ac2670e3d223b5d2e596e61a67b9aeda97b0ed

Contents?: true

Size: 664 Bytes

Versions: 28

Compression:

Stored size: 664 Bytes

Contents

<%= render_component_tag tag_name,
  id: id,
  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,
  aria: { label: tooltip } do %>
  <span x-ref="icon">
    <%= icons.present? ? safe_join(icons) : (lookbook_render(:icon, name: icon, size: icon_size, ":class": "{'animate-spin': _spinning}") if icon) %>
  </span>
  <% if tooltip %>
    <label class="hidden" x-ref="tooltip"><%= tooltip %></label>
  <% end %>
  <%= content %>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/icon_button/component.html.erb
lookbook-2.3.3 app/components/lookbook/icon_button/component.html.erb
lookbook-2.3.2 app/components/lookbook/icon_button/component.html.erb
lookbook-2.3.0 app/components/lookbook/icon_button/component.html.erb
lookbook-2.2.2 app/components/lookbook/icon_button/component.html.erb
lookbook-2.2.1 app/components/lookbook/icon_button/component.html.erb
lookbook-2.2.0 app/components/lookbook/icon_button/component.html.erb
lookbook-2.1.1 app/components/lookbook/icon_button/component.html.erb
lookbook-2.1.0 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.5 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.4 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.3 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.2 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.1 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.0 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.0.rc.3 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.0.rc.2 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.0.rc.1 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.0.beta.9 app/components/lookbook/icon_button/component.html.erb
lookbook-2.0.0.beta.8 app/components/lookbook/icon_button/component.html.erb