Sha256: 4dee7a5744b348758bcdebe43642fb278115b6a8a0f587178a8702e8bae0bd41

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 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-highlight': 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

1 entries across 1 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.5 app/components/lookbook/tabs/dropdown_tab/component.html.erb