Sha256: 83cfcb79f66724466910b71e49e24e67d82712c2f9c0a1435921be3eea2a8e3f

Contents?: true

Size: 660 Bytes

Versions: 1

Compression:

Stored size: 660 Bytes

Contents

<%= render_component_tag :button,
  id: @id,
  x_ref: @ref,
  class: "whitespace-nowrap pt-2.5 pb-1.5 px-1 border-b-2 cursor-pointer",
  ":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

1 entries across 1 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.0 app/components/lookbook/tabs/tab/component.html.erb