Sha256: 7b9af2f9abdcf802a66822737b6bc588b1ae2b6ec6280a7bea0574f9dbe92d81

Contents?: true

Size: 572 Bytes

Versions: 17

Compression:

Stored size: 572 Bytes

Contents

<%= render_component_tag :button,
  "x-ref": @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

17 entries across 17 versions & 1 rubygems

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