Sha256: 9a5a1a266a40c86d8e7af7a8427f84541e67aadbdaac3149d2afca5aa59771c1

Contents?: true

Size: 570 Bytes

Versions: 16

Compression:

Stored size: 570 Bytes

Contents

<nav id="nav" x-data="nav(<%= filterable %>)">
  <% if items.any? %>
    <ul x-ref="items" id="nav-<%= items.class.describe_as %>">
      <% items.each do |item| %>
        <%= component "nav_#{item.type}", node: item %>
      <% end %>
    </ul>
    <div class="p-4 text-center" x-show="empty" x-cloak>
      <em class="text-gray-400 italic">No matching <%= items.class.describe_as %> found.</em>
    </div>
  <% else %>
    <div class="p-4 text-center">
      <h4 class="text-gray-400 italic">No <%= items.class.describe_as %> found.</h4>
    </div>
  <% end %>
</nav>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lookbook-0.8.3 app/views/lookbook/components/_nav.html.erb
lookbook-0.8.2 app/views/lookbook/components/_nav.html.erb
lookbook-0.8.1 app/views/lookbook/components/_nav.html.erb
lookbook-0.8.0 app/views/lookbook/components/_nav.html.erb
lookbook-0.8.0.beta.0 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.4 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.3 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.2 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.2.beta.5 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.2.beta.4 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.2.beta.3 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.2.beta.2 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.2.beta.1 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.2.beta.0 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.1 app/views/lookbook/components/_nav.html.erb
lookbook-0.7.0 app/views/lookbook/components/_nav.html.erb