Sha256: cd28f383c0acfdf97177b1d3837d78902dd5a0df999132fe699364207b009a9c

Contents?: true

Size: 734 Bytes

Versions: 4

Compression:

Stored size: 734 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

4 entries across 4 versions & 1 rubygems

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