Sha256: 8fa1adc4d742a0a7275b917ce3ca062287cc79005395bab7d1f560979cb0f451

Contents?: true

Size: 962 Bytes

Versions: 8

Compression:

Stored size: 962 Bytes

Contents

<%
path = show_path item.path
display ||= :item
label ||= item.label
%>
<li key="<%= item.id %>">
  <div id="nav-item-<%= item.id %>" x-data="navItem(<%= item.matchers.to_json %>)" :class="{hidden}" data-path="<%= path %>" x-cloak>
    <a href="<%= path %>"
      class="nav-link pr-3 py-[5px] flex items-center w-full group transition hover:bg-gray-200 hover:bg-opacity-50"
      style="padding-left: calc((<%= depth - 1 %> * 12px) + 0.5rem);"
      x-ref="link"
      :class="{'!bg-indigo-100':active}"
      @click.stop.prevent="navigate"
    >
      <div class="relative w-3.5 h-3.5 mr-1.5 <%= "ml-[3px]" if display == :node %> " :class="active ? 'text-gray-900' : 'text-indigo-500'">
        <%= icon display == :node ? "layers" : "eye", size: 3.5, class: "group-hover:text-indigo-800" %>
      </div>
      <div class="truncate whitespace-nowrap select-none <%= "font-bold" if display == :node %>">
        <%= label %>
      </div>
    </a>
  </div>
</li>

Version data entries

8 entries across 8 versions & 1 rubygems

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