Sha256: 11f35d4660b1d14694cc02832e4eab4b68525c62af86bfd1feb5e704d8d4c80a

Contents?: true

Size: 750 Bytes

Versions: 24

Compression:

Stored size: 750 Bytes

Contents

<%= render_component_tag class: "flex flex-col overflow-hidden h-full",
  "@filter:change.stop": "filter($event.detail.text)" do %>
  
  <% if toolbar %>
    <%= toolbar %>
  <% end %>

  <% if filter && items.any? %>
    <div class="p-2 pb-0">
      <%= filter %>
    </div>
  <% end %>

  <div class="overflow-auto h-full">
    <% if items.any? %>
      <ul class="py-2" x-ref="items" x-show="!empty" x-cloak>
        <%= safe_join(items) %>
      </ul>
      <div class="p-4 text-center" x-show="empty" x-cloak>
        <h4 class="opacity-50 italic">No matching results.</h4>
      </div>
    <% else %>
      <div class="p-4 text-center">
        <h4 class="opacity-50 italic">Nothing here yet.</h4>
      </div>
    <% end %>
  </div>

<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lookbook-1.5.5 app/components/lookbook/nav/component.html.erb
lookbook-1.5.4 app/components/lookbook/nav/component.html.erb
lookbook-1.5.3 app/components/lookbook/nav/component.html.erb
lookbook-1.5.2 app/components/lookbook/nav/component.html.erb
lookbook-1.5.1 app/components/lookbook/nav/component.html.erb
lookbook-1.5.0 app/components/lookbook/nav/component.html.erb
lookbook-1.4.5 app/components/lookbook/nav/component.html.erb
lookbook-1.4.4 app/components/lookbook/nav/component.html.erb
lookbook-1.4.3 app/components/lookbook/nav/component.html.erb
lookbook-1.4.2 app/components/lookbook/nav/component.html.erb
lookbook-1.4.1 app/components/lookbook/nav/component.html.erb
lookbook-1.4.0 app/components/lookbook/nav/component.html.erb
lookbook-1.3.4 app/components/lookbook/nav/component.html.erb
lookbook-1.3.3 app/components/lookbook/nav/component.html.erb
lookbook-1.3.1 app/components/lookbook/nav/component.html.erb
lookbook-1.3.0 app/components/lookbook/nav/component.html.erb
lookbook-1.2.1 app/components/lookbook/nav/component.html.erb
lookbook-1.2.0 app/components/lookbook/nav/component.html.erb
lookbook-1.1.1 app/components/lookbook/nav/component.html.erb
lookbook-1.1.0 app/components/lookbook/nav/component.html.erb