Sha256: 345c97556a828d03cd7edd468642933b9b7a4ca1f84965a54a3bf0da020e189a

Contents?: true

Size: 773 Bytes

Versions: 4

Compression:

Stored size: 773 Bytes

Contents

<%= render_component_tag :button,
  id: @id,
  x_ref: @name,
  class: [
    "whitespace-nowrap cursor-pointer pt-2.5 pb-1.5 border-b-2",
    {
      "px-1": @theme == :toolbar,
      "px-2 text-lg relative -bottom-px": @theme == :page,
    }
  ],
  ":class": "{
    'border-lookbook-tabs-highlight': isSelected($el),
    'border-transparent text-lookbook-tabs-text hover:text-lookbook-tabs-text-hover': !isSelected($el),
    '!text-lookbook-tabs-text-disabled': isDisabled($el),
    'invisible pointer-events-none relative z-[-1]': visibleTabsCount < #{@position}
  }",
  "@click.prevent": "selectTab($el)",
  "@keydown.window.prevent.#{@hotkey}": @hotkey.present? ? "$el.click()" : nil,
  data: {
    disabled: @disabled
  },
  cloak: true do %>
  <%== label %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.4 app/components/lookbook/tabs/tab/component.html.erb
lookbook-1.0.0.beta.3 app/components/lookbook/tabs/tab/component.html.erb
lookbook-1.0.0.beta.2 app/components/lookbook/tabs/tab/component.html.erb
lookbook-1.0.0.beta.1 app/components/lookbook/tabs/tab/component.html.erb