Sha256: 063e3a83e7c0473da9a0f64dcda95fa8e6c27c6a639443dc4d3bfdcaa8096da8

Contents?: true

Size: 607 Bytes

Versions: 9

Compression:

Stored size: 607 Bytes

Contents

<nav id="nav-<%= items.class.describe_as %>" x-data="nav(<%= filterable %>)">
  <% if items.any? %>
    <ul x-ref="items" id="nav-<%= items.class.describe_as %>-items">
      <% 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

9 entries across 9 versions & 1 rubygems

Version Path
lookbook-0.9.8 app/views/lookbook/components/_nav.html.erb
lookbook-0.9.7 app/views/lookbook/components/_nav.html.erb
lookbook-0.9.6 app/views/lookbook/components/_nav.html.erb
lookbook-0.9.5 app/views/lookbook/components/_nav.html.erb
lookbook-0.9.4 app/views/lookbook/components/_nav.html.erb
lookbook-0.9.3 app/views/lookbook/components/_nav.html.erb
lookbook-0.9.2 app/views/lookbook/components/_nav.html.erb
lookbook-0.9.1 app/views/lookbook/components/_nav.html.erb
lookbook-0.9.0 app/views/lookbook/components/_nav.html.erb