x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<nav class="Polaris-Navigation"> <div data-paper-scrollable-shadow-value="false" data-paper-scrollable-top-shadow-class="Polaris-Scrollable--hasTopShadow" data-paper-scrollable-bottom-shadow-class="Polaris-Scrollable--hasBottomShadow" data-controller="paper-scrollable" style="" class="Polaris-Navigation__PrimaryNavigation Polaris-Scrollable Polaris-Scrollable--vertical"> <span data-paper-scrollable-target="topEdge"></span> <ul class="Polaris-Navigation__Section"> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <div class="Polaris-Navigation__ItemInnerWrapper"> <a class="Polaris-Navigation__Item Polaris-Navigation__Item--selected Polaris-Navigation--subNavigationActive" tabindex="0" href="#"> <div class="Polaris-Navigation__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M10.555 3.168a1 1 0 0 0-1.11 0l-5.554 3.702a2 2 0 0 0-.891 1.665v6.465a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1v-4h4v4a1 1 0 0 0 1 1h2a2 2 0 0 0 2-2v-6.465a2 2 0 0 0-.89-1.664l-5.555-3.703Z"></path></svg> </span> </div> <span class="Polaris-Navigation__Text"> Home </span> </a> </div> </div> </li> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <div class="Polaris-Navigation__ItemInnerWrapper"> <a class="Polaris-Navigation__Item" tabindex="0" href="#"> <div class="Polaris-Navigation__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M3.735 5.507a3 3 0 0 1 2.96-2.507h6.61a3 3 0 0 1 2.96 2.507l.735 4.493v5a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-5l.735-4.493Zm2.96-.507a1 1 0 0 0-.987.836l-.708 4.164v1h1.394a3 3 0 0 1 1.665.504l.832.555a2 2 0 0 0 2.218 0l.832-.555a3 3 0 0 1 1.666-.504h1.393v-1l-.708-4.164a1 1 0 0 0-.986-.836h-6.612Z"></path></svg> </span> </div> <span class="Polaris-Navigation__Text"> Orders </span> <div class="Polaris-Navigation__Badge"> <span class="Polaris-Badge"> <span class="Polaris-Text--root Polaris-Text--bodySm Polaris-Text--regular"> 15 </span></span> </div> </a> </div> </div> </li> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <div class="Polaris-Navigation__ItemInnerWrapper"> <a class="Polaris-Navigation__Item" tabindex="0" href="#"> <div class="Polaris-Navigation__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M10.408 3h5.592a1 1 0 0 1 1 1v5.592a2 2 0 0 1-.57 1.399l-5.162 5.277a2.5 2.5 0 0 1-3.536 0l-4-4a2.5 2.5 0 0 1 0-3.536l.008-.008 5.27-5.154a2 2 0 0 1 1.397-.57Zm3.092 5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg> </span> </div> <span class="Polaris-Navigation__Text"> Products </span> </a> </div> </div> </li> </ul> <span data-paper-scrollable-target="bottomEdge"></span> </div></nav>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<%= paper_navigation do |navigation| %> <% navigation.with_item( url: "#", label: "Home", icon: "HomeMinor", selected: true ) %> <% navigation.with_item( url: "#", label: "Orders", icon: "OrdersMinor", badge: "15" ) %> <% navigation.with_item( url: "#", label: "Products", icon: "ProductsMinor" ) %><% end %>
No notes provided.
No params configured.