Sha256: 3813da5e8a17a0b808aad4814f61d5465ec68909f158a65e95cceed74232401f

Contents?: true

Size: 593 Bytes

Versions: 34

Compression:

Stored size: 593 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}
  }",
  "@click.prevent": "selectTab($el)",
  data: {
    disabled: @disabled
  } do %>
  <%= label %>
<% end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
lookbook-2.0.2 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.1 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.rc.3 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-1.5.5 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-1.5.4 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.rc.2 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.rc.1 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.9 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.8 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.7 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.6 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.5 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.4 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.3 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.2 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-1.5.3 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.1 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-1.5.2 app/components/lookbook/tabs/dropdown_tab/component.html.erb
lookbook-2.0.0.beta.0 app/components/lookbook/tabs/dropdown_tab/component.html.erb