Sha256: d1c30038d85d8a30b3ef4c2d9d1d3ef0cca53d7d905df67e63da71a758d6a0f8

Contents?: true

Size: 733 Bytes

Versions: 10

Compression:

Stored size: 733 Bytes

Contents

<%= render_component_tag class: "flex items-center relative" do %>
  <div x-ref="tabs" class="<%= class_names [
    "flex items-stretch select-none min-w-0",
    {
      "h-10 space-x-6": @theme == :toolbar,
      "space-x-3": @theme == :page,
    }
  ] %>">
    <%= safe_join(tabs) %>
  </div>
  <div x-ref="dropdownTrigger" class="absolute" x-show="hasHiddenTabs" :style="{left: `${triggerLeft}px`}">
    <%= lookbook_render :button, icon: :chevrons_right, "x-show": "visibleTabsCount > 0" %>
    <%= lookbook_render :button, icon: :menu, class: "-ml-3", "x-show": "visibleTabsCount === 0" %>
  </div>
  <div class="hidden">
    <div x-ref="tabsDropdown" x-cloak>
      <%= safe_join(dropdown_tabs) %>
    </div>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lookbook-1.5.5 app/components/lookbook/tabs/component.html.erb
lookbook-1.5.4 app/components/lookbook/tabs/component.html.erb
lookbook-1.5.3 app/components/lookbook/tabs/component.html.erb
lookbook-1.5.2 app/components/lookbook/tabs/component.html.erb
lookbook-1.5.1 app/components/lookbook/tabs/component.html.erb
lookbook-1.5.0 app/components/lookbook/tabs/component.html.erb
lookbook-1.4.5 app/components/lookbook/tabs/component.html.erb
lookbook-1.4.4 app/components/lookbook/tabs/component.html.erb
lookbook-1.4.3 app/components/lookbook/tabs/component.html.erb
lookbook-1.4.2 app/components/lookbook/tabs/component.html.erb