Sha256: e77ceeaa8ebcd728d9af97ee99ec45626fb969720fae15091106ebb158eeb126
Contents?: true
Size: 879 Bytes
Versions: 1
Compression:
Stored size: 879 Bytes
Contents
<%= render_component_tag :li, id: id, class: "list-none", "x-show": "!filteredOut", data: { "entity-type": type }, cloak: true do %> <%= lookbook_tag href.present? ? :a : :button, href: href, class: "nav-action", style: "padding-left: #{left_pad}px", "x-bind": "bindings.#{href.present? ? "link" : "toggle"}" do %> <div class="nav-action-inner"> <%= icon nil, size: 3, class: "nav-toggle-icon", "x-effect": "iconName = open ? 'chevron-down' : 'chevron-right'" if children? %> <%= icon nav_icon, size: 3.5, class: "mr-1.5 text-lookbook-nav-icon-stroke" %> <span class="truncate <% if node.type == :preview %>font-bold<% end %>"><%= label %></span> </div> <% end %> <% if children? %> <ul x-ref="items" x-show="open" x-cloak> <%= safe_join(children) %> </ul> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.4.0 | app/components/lookbook/nav/entity/component.html.erb |