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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<div class="flex flex-col gap-8 p-6"> <div data-controller="midwest-prose" class="midwest-prose prose"> <p>Hash items — icons set explicitly</p> </div> <nav class="midwest-breadcrumbs style-inline" aria-label="Breadcrumb"> <ol class="breadcrumbs-list"> <li class="breadcrumb-item"> <a class="midwest-breadcrumb variant-default" href="/"> <span class="midwest-label "> Home </span> </a> </li> <li class="breadcrumb-separator" aria-hidden="true"> <span class="sep-char" aria-hidden="true">/</span> </li> <li class="breadcrumb-item"> <a class="midwest-breadcrumb variant-default" href="/posts"> <span class="midwest-label "> Posts </span> </a> </li> <li class="breadcrumb-separator" aria-hidden="true"> <span class="sep-char" aria-hidden="true">/</span> </li> <li class="breadcrumb-item"> <span class="midwest-breadcrumb variant-default current" aria-current="page"> <span class="midwest-label "> Getting Started </span> </span> </li> </ol> </nav> <div data-controller="midwest-prose" class="midwest-prose prose"> <p>Iconable class (collection) — icon comes from the model</p> </div> <nav class="midwest-breadcrumbs style-inline" aria-label="Breadcrumb"> <ol class="breadcrumbs-list"> <li class="breadcrumb-item"> <a class="midwest-breadcrumb variant-default" href="/"> <span class="midwest-label "> Home </span> </a> </li> <li class="breadcrumb-separator" aria-hidden="true"> <span class="sep-char" aria-hidden="true">/</span> </li> <li class="breadcrumb-item"> <span class="midwest-breadcrumb variant-default current has-icon" aria-current="page"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Document text outline"><title>Document text outline</title> <path d="M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"></path><path d="M256 56v120a32 32 0 0032 32h120M176 288h160M176 368h160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path></svg> </div> </div> <span class="midwest-label "> Posts </span> </span> </li> </ol> </nav> <div data-controller="midwest-prose" class="midwest-prose prose"> <p>Iconable instance (record) — icon comes from the model</p> </div> <nav class="midwest-breadcrumbs style-inline" aria-label="Breadcrumb"> <ol class="breadcrumbs-list"> <li class="breadcrumb-item"> <a class="midwest-breadcrumb variant-default" href="/"> <span class="midwest-label "> Home </span> </a> </li> <li class="breadcrumb-separator" aria-hidden="true"> <span class="sep-char" aria-hidden="true">/</span> </li> <li class="breadcrumb-item"> <a class="midwest-breadcrumb variant-default has-icon" href="/posts"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Document text outline"><title>Document text outline</title> <path d="M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"></path><path d="M256 56v120a32 32 0 0032 32h120M176 288h160M176 368h160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path></svg> </div> </div> <span class="midwest-label "> Posts </span> </a> </li> <li class="breadcrumb-separator" aria-hidden="true"> <span class="sep-char" aria-hidden="true">/</span> </li> <li class="breadcrumb-item"> <span class="midwest-breadcrumb variant-default current has-icon" aria-current="page"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Document text outline"><title>Document text outline</title> <path d="M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"></path><path d="M256 56v120a32 32 0 0032 32h120M176 288h160M176 368h160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path></svg> </div> </div> <span class="midwest-label "> Getting Started </span> </span> </li> </ol> </nav> <div data-controller="midwest-prose" class="midwest-prose prose"> <p>Mixed — hash home, iconable collection, iconable instance</p> </div> <nav class="midwest-breadcrumbs style-background" aria-label="Breadcrumb"> <ol class="breadcrumbs-list"> <li class="breadcrumb-item"> <a class="midwest-breadcrumb variant-default" href="/"> <span class="midwest-label "> Home </span> </a> </li> <li class="breadcrumb-separator" aria-hidden="true"> <span class="sep-char" aria-hidden="true">/</span> </li> <li class="breadcrumb-item"> <a class="midwest-breadcrumb variant-default has-icon" href="/posts"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Document text outline"><title>Document text outline</title> <path d="M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"></path><path d="M256 56v120a32 32 0 0032 32h120M176 288h160M176 368h160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path></svg> </div> </div> <span class="midwest-label "> Posts </span> </a> </li> <li class="breadcrumb-separator" aria-hidden="true"> <span class="sep-char" aria-hidden="true">/</span> </li> <li class="breadcrumb-item"> <span class="midwest-breadcrumb variant-default current has-icon" aria-current="page"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Document text outline"><title>Document text outline</title> <path d="M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"></path><path d="M256 56v120a32 32 0 0032 32h120M176 288h160M176 368h160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path></svg> </div> </div> <span class="midwest-label "> Getting Started </span> </span> </li> </ol> </nav></div>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
<div class="flex flex-col gap-8 p-6"> <%= midwest_prose { tag.p "Hash items — icons set explicitly" } %> <%= midwest_breadcrumbs( { title: 'Home', path: '/' }, { title: 'Posts', path: '/posts' }, { title: 'Getting Started', path: '/posts/1' } ) %> <%= midwest_prose { tag.p "Iconable class (collection) — icon comes from the model" } %> <%= midwest_breadcrumbs( { title: 'Home', path: '/' }, post_class ) %> <%= midwest_prose { tag.p "Iconable instance (record) — icon comes from the model" } %> <%= midwest_breadcrumbs( { title: 'Home', path: '/' }, post_class, post_record ) %> <%= midwest_prose { tag.p "Mixed — hash home, iconable collection, iconable instance" } %> <%= midwest_breadcrumbs( { title: 'Home', path: '/' }, post_class, post_record, style: :background ) %></div>Breadcrumbs integration
Iconable models passed to midwest_breadcrumbs automatically render
their declared icon alongside the label — no extra options needed.
No params configured.
No assets to display.
Add a .js or .css file alongside the component to see it here.
Figma embed for Iconable/breadcrumbs
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."