Sha256: 52f1b2d44458bfae9063f0d72f6bdb9648a1f2381b8b08388e51b82e703745a6

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

<%= render_component_tag :button,
  x_ref: @ref,
  class: "whitespace-nowrap px-4 py-2 border-l-2 cursor-pointer block w-full text-left",
  ":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.0 app/components/lookbook/tabs/dropdown_tab/component.html.erb