Sha256: 7215ef89adae1f7f0df09e8cf32aa4e54ed90e6edcc0c2b12bbd5b044fd6c8e4

Contents?: true

Size: 753 Bytes

Versions: 12

Compression:

Stored size: 753 Bytes

Contents

<%= render_component_tag class: "flex flex-col overflow-hidden h-full",
  "x-on: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

12 entries across 12 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/nav/component.html.erb
lookbook-2.3.3 app/components/lookbook/nav/component.html.erb
lookbook-2.3.2 app/components/lookbook/nav/component.html.erb
lookbook-2.3.0 app/components/lookbook/nav/component.html.erb
lookbook-2.2.2 app/components/lookbook/nav/component.html.erb
lookbook-2.2.1 app/components/lookbook/nav/component.html.erb
lookbook-2.2.0 app/components/lookbook/nav/component.html.erb
lookbook-2.1.1 app/components/lookbook/nav/component.html.erb
lookbook-2.1.0 app/components/lookbook/nav/component.html.erb
lookbook-2.0.5 app/components/lookbook/nav/component.html.erb
lookbook-2.0.4 app/components/lookbook/nav/component.html.erb
lookbook-2.0.3 app/components/lookbook/nav/component.html.erb