Sha256: c8335d44913741883bf6c27b850cd4c22ad32d97cf18b8bc0526d5fbdfd431ab

Contents?: true

Size: 770 Bytes

Versions: 8

Compression:

Stored size: 770 Bytes

Contents

<li key="<%= node.id %>" class="<%= classes %>">
  <div id="nav-group-<%= node.id %>" x-data="navGroup" :class="{hidden}" x-cloak>
    <div @click="toggle" class="nav-toggle py-[5px]" style="padding-left: calc((<%= node.hierarchy_depth - 1 %> * 12px) + 0.5rem);">
      <%= icon "${open ? 'chevron-down' : 'chevron-right'}", size: 3, class: "mr-1 text-gray-500" %>
      <%= icon node.type == :preview ? "layers" : "folder", size: 3.5, class: "mr-1.5 text-indigo-500" %>
      <div class="nav-label <%= "font-bold" if node.type == :preview %>" <% if node.type == :preview %> @click.stop="toggle(); navigateToFirstChild()"<% end %>>
        <%= node.label %>
      </div>
    </div>
    <ul x-ref="items" x-show="open" x-cloak>
      <%= yield %>
    </ul>
  </div>
</li>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lookbook-0.6.1 app/views/lookbook/components/_nav_group.html.erb
lookbook-0.6.0 app/views/lookbook/components/_nav_group.html.erb
lookbook-0.5.2 app/views/lookbook/components/_nav_group.html.erb
lookbook-0.5.1 app/views/lookbook/components/_nav_group.html.erb
lookbook-0.5.0 app/views/lookbook/components/_nav_group.html.erb
lookbook-0.5.0.beta.2 app/views/lookbook/components/_nav_group.html.erb
lookbook-0.5.0.beta.1 app/views/lookbook/components/_nav_group.html.erb
lookbook-0.5.0.beta.0 app/views/lookbook/components/_nav_group.html.erb