Sha256: 2d9431e1ce32639c421ba6721ebd70dd7401317415a2c2c29745c76b3868085c

Contents?: true

Size: 743 Bytes

Versions: 12

Compression:

Stored size: 743 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">
    <% 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-1.0.4 app/components/lookbook/nav/component.html.erb
lookbook-1.0.3 app/components/lookbook/nav/component.html.erb
lookbook-1.0.2 app/components/lookbook/nav/component.html.erb
lookbook-1.0.1 app/components/lookbook/nav/component.html.erb
lookbook-1.0.0 app/components/lookbook/nav/component.html.erb
lookbook-1.0.0.rc.3 app/components/lookbook/nav/component.html.erb
lookbook-1.0.0.rc.2 app/components/lookbook/nav/component.html.erb
lookbook-1.0.0.rc.1 app/components/lookbook/nav/component.html.erb
lookbook-1.0.0.beta.8 app/components/lookbook/nav/component.html.erb
lookbook-1.0.0.beta.7 app/components/lookbook/nav/component.html.erb
lookbook-1.0.0.beta.6 app/components/lookbook/nav/component.html.erb
lookbook-1.0.0.beta.5 app/components/lookbook/nav/component.html.erb