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
<div class="p-6 space-y-8"> <div> <h3 class="text-lg font-semibold text-grayscale-900 mb-2">Slash Separator (default)</h3> <nav aria-label="Breadcrumb" class=""> <ol class="flex items-center flex-wrap gap-1 text-base"> <li class="inline-flex items-center"> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Home </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true">/</span> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Products </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true">/</span> <span class="text-grayscale-500 font-medium inline-flex items-center gap-1" aria-current="page"> Widget </span> </li> </ol> </nav> </div> <div> <h3 class="text-lg font-semibold text-grayscale-900 mb-2">Chevron Separator</h3> <nav aria-label="Breadcrumb" class=""> <ol class="flex items-center flex-wrap gap-1 text-base"> <li class="inline-flex items-center"> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Home </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg></span> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Products </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg></span> <span class="text-grayscale-500 font-medium inline-flex items-center gap-1" aria-current="page"> Widget </span> </li> </ol> </nav> </div> <div> <h3 class="text-lg font-semibold text-grayscale-900 mb-2">Dot Separator</h3> <nav aria-label="Breadcrumb" class=""> <ol class="flex items-center flex-wrap gap-1 text-base"> <li class="inline-flex items-center"> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Home </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true">·</span> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Products </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true">·</span> <span class="text-grayscale-500 font-medium inline-flex items-center gap-1" aria-current="page"> Widget </span> </li> </ol> </nav> </div> <hr class="border-grayscale-200"> <div> <h3 class="text-lg font-semibold text-grayscale-900 mb-4">All Sizes</h3> <div class="space-y-4"> <div> <p class="text-sm text-grayscale-500 mb-1">Size: sm</p> <nav aria-label="Breadcrumb" class=""> <ol class="flex items-center flex-wrap gap-1 text-sm"> <li class="inline-flex items-center"> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Home </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg></span> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Products </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg></span> <span class="text-grayscale-500 font-medium inline-flex items-center gap-1" aria-current="page"> Widget </span> </li> </ol> </nav> </div> <div> <p class="text-sm text-grayscale-500 mb-1">Size: md</p> <nav aria-label="Breadcrumb" class=""> <ol class="flex items-center flex-wrap gap-1 text-base"> <li class="inline-flex items-center"> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Home </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg></span> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Products </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg></span> <span class="text-grayscale-500 font-medium inline-flex items-center gap-1" aria-current="page"> Widget </span> </li> </ol> </nav> </div> <div> <p class="text-sm text-grayscale-500 mb-1">Size: lg</p> <nav aria-label="Breadcrumb" class=""> <ol class="flex items-center flex-wrap gap-1 text-lg"> <li class="inline-flex items-center"> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Home </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg></span> <a href="#" class="text-grayscale-600 hover:text-grayscale-900 inline-flex items-center gap-1 transition-colors"> Products </a> </li> <li class="inline-flex items-center"> <span class="mx-2 text-grayscale-400" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg></span> <span class="text-grayscale-500 font-medium inline-flex items-center gap-1" aria-current="page"> Widget </span> </li> </ol> </nav> </div> </div> </div></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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div class="p-6 space-y-8"> <div> <h3 class="text-lg font-semibold text-grayscale-900 mb-2">Slash Separator (default)</h3> <%= render BetterUi::Breadcrumb::BreadcrumbComponent.new(separator: :slash) do |breadcrumb| %> <% breadcrumb.with_item(label: "Home", href: "#") %> <% breadcrumb.with_item(label: "Products", href: "#") %> <% breadcrumb.with_item(label: "Widget") %> <% end %> </div> <div> <h3 class="text-lg font-semibold text-grayscale-900 mb-2">Chevron Separator</h3> <%= render BetterUi::Breadcrumb::BreadcrumbComponent.new(separator: :chevron) do |breadcrumb| %> <% breadcrumb.with_item(label: "Home", href: "#") %> <% breadcrumb.with_item(label: "Products", href: "#") %> <% breadcrumb.with_item(label: "Widget") %> <% end %> </div> <div> <h3 class="text-lg font-semibold text-grayscale-900 mb-2">Dot Separator</h3> <%= render BetterUi::Breadcrumb::BreadcrumbComponent.new(separator: :dot) do |breadcrumb| %> <% breadcrumb.with_item(label: "Home", href: "#") %> <% breadcrumb.with_item(label: "Products", href: "#") %> <% breadcrumb.with_item(label: "Widget") %> <% end %> </div> <hr class="border-grayscale-200"> <div> <h3 class="text-lg font-semibold text-grayscale-900 mb-4">All Sizes</h3> <div class="space-y-4"> <% BetterUi::Breadcrumb::BreadcrumbComponent::SIZES.each do |size| %> <div> <p class="text-sm text-grayscale-500 mb-1">Size: <%= size %></p> <%= render BetterUi::Breadcrumb::BreadcrumbComponent.new(separator: :chevron, size: size) do |breadcrumb| %> <% breadcrumb.with_item(label: "Home", href: "#") %> <% breadcrumb.with_item(label: "Products", href: "#") %> <% breadcrumb.with_item(label: "Widget") %> <% end %> </div> <% end %> </div> </div></div>No notes provided.
No params configured.