Sha256: 7ae460f5ba4788ec858ef0166dd333b4f060ff511dd38c2c940f3939c0c88fd0

Contents?: true

Size: 736 Bytes

Versions: 10

Compression:

Stored size: 736 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" data-cloak>
      <%= safe_join(dropdown_tabs) %>
    </div>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lookbook-1.4.1 app/components/lookbook/tabs/component.html.erb
lookbook-1.4.0 app/components/lookbook/tabs/component.html.erb
lookbook-1.3.4 app/components/lookbook/tabs/component.html.erb
lookbook-1.3.3 app/components/lookbook/tabs/component.html.erb
lookbook-1.3.1 app/components/lookbook/tabs/component.html.erb
lookbook-1.3.0 app/components/lookbook/tabs/component.html.erb
lookbook-1.2.1 app/components/lookbook/tabs/component.html.erb
lookbook-1.2.0 app/components/lookbook/tabs/component.html.erb
lookbook-1.1.1 app/components/lookbook/tabs/component.html.erb
lookbook-1.1.0 app/components/lookbook/tabs/component.html.erb