Sha256: 31f943fd6e3c5504738648c6658acad21e51f39d71b90f7bf23fe7df0c95b4ec

Contents?: true

Size: 738 Bytes

Versions: 16

Compression:

Stored size: 738 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`}">
    <%= render_component :button, icon: :chevrons_right, "x-show": "visibleTabsCount > 0" %>
    <%= render_component :button, icon: :menu, class: "-ml-3", "x-show": "visibleTabsCount === 0" %>
  </div>
  <div class="hidden">
    <div x-ref="tabsDropdown" data-cloak>
      <%= safe_join(dropdown_tabs) %>
    </div>
  </div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lookbook-1.0.8 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.7 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.6 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.5 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.4 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.3 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.2 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.1 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.0 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.0.rc.3 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.0.rc.2 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.0.rc.1 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.0.beta.8 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.0.beta.7 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.0.beta.6 app/components/lookbook/tabs/component.html.erb
lookbook-1.0.0.beta.5 app/components/lookbook/tabs/component.html.erb