Sha256: 9745fd1e5bfeb3a8acf41da1e0f1f40ef10e7c25626b9c1e087dd73f01df2349

Contents?: true

Size: 597 Bytes

Versions: 12

Compression:

Stored size: 597 Bytes

Contents

<%= render_component_tag :button,
  "x-ref": @name,
  "data-tab": @name,
  class: [
    "whitespace-nowrap px-4 border-l-2 cursor-pointer block w-full text-left",
    {
      "py-2": @theme == :toolbar,
      "py-2 text-base": @theme == :page,
    }
  ],
  ":class": "{
    'border-lookbook-tabs-border-active': isSelected($el),
    'border-transparent text-lookbook-tabs-text hover:text-lookbook-tabs-text-hover': !isSelected($el),
    'hidden': visibleTabsCount >= #{@position}
  }",
  "x-on:click.prevent": "selectTab($el)",
  data: {
    disabled: @disabled
  } do %>
  <%= label %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.3.3 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.3.2 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.3.0 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.2.2 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.2.1 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.2.0 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.1.1 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.1.0 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.5 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.4 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.3 app/components/lookbook/tabs/dropdown_tab/component.html.erb