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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<div class="space-y-12">
<div>
<h3 class="mb-2 text-lg font-semibold">Badge colours and styles</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-default rounded-md badge-small" role="status" aria-label="Default Badge">
<span>Default Badge</span>
</span>
<span class="badge badge-primary rounded-md badge-small" role="status" aria-label="Primary Badge">
<span>Primary Badge</span>
</span>
<span class="badge badge-info rounded-md badge-small" role="status" aria-label="Info Badge">
<span>Info Badge</span>
</span>
<span class="badge badge-success rounded-md badge-small" role="status" aria-label="Success Badge">
<span>Success Badge</span>
</span>
<span class="badge badge-warning rounded-md badge-small" role="status" aria-label="Warning Badge">
<span>Warning Badge</span>
</span>
<span class="badge badge-danger rounded-md badge-small" role="status" aria-label="Danger Badge">
<span>Danger Badge</span>
</span>
<span class="badge badge-dark rounded-md badge-small" role="status" aria-label="Dark Badge">
<span>Dark Badge</span>
</span>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges with Icons and no text</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-warning rounded-md badge-small" role="status" aria-label="Warning">
<svg viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-bookmark icon-desc-bookmark"><title id="icon-title-bookmark">Bookmark</title>
<desc id="icon-desc-bookmark">Bookmark icon</desc>
<path d="M17.5933 3.32241C18.6939 3.45014 19.5 4.399 19.5 5.50699V21L12 17.25L4.5 21V5.50699C4.5 4.399 5.30608 3.45014 6.40668 3.32241C8.24156 3.10947 10.108 3 12 3C13.892 3 15.7584 3.10947 17.5933 3.32241Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</span> <span class="badge badge-success rounded-md badge-small" role="status" aria-label="Success">
<svg viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-check icon-desc-check"><title id="icon-title-check">Check</title>
<desc id="icon-desc-check">Check icon</desc>
<path d="M4.5 12.75L10.5 18.75L19.5 5.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</span> </div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges different colours</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-gray rounded-md badge-small" role="status" aria-label="Gray">
<span>Gray</span>
</span>
<span class="badge badge-red rounded-md badge-small" role="status" aria-label="red">
<span>red</span>
</span>
<span class="badge badge-yellow rounded-md badge-small" role="status" aria-label="Yellow">
<span>Yellow</span>
</span>
<span class="badge badge-green rounded-md badge-small" role="status" aria-label="Green">
<span>Green</span>
</span>
<span class="badge badge-blue rounded-md badge-small" role="status" aria-label="Blue">
<span>Blue</span>
</span>
<span class="badge badge-indigo rounded-md badge-small" role="status" aria-label="Indigo">
<span>Indigo</span>
</span>
<span class="badge badge-purple rounded-md badge-small" role="status" aria-label="Purple">
<span>Purple</span>
</span>
<span class="badge badge-pink rounded-md badge-small" role="status" aria-label="Pink">
<span>Pink</span>
</span>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges sizes</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-default rounded-md badge-small" role="status" aria-label="Small Gray">
<span>Small Gray</span>
</span>
<span class="badge badge-default rounded-md badge-medium" role="status" aria-label="Medium Gray">
<span>Medium Gray</span>
</span>
<span class="badge badge-default rounded-md badge-base" role="status" aria-label="Base Gray">
<span>Base Gray</span>
</span>
<span class="badge badge-default rounded-md badge-large" role="status" aria-label="Large Gray">
<span>Large Gray</span>
</span>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges Outline</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge bg-transparent border-rose-800 text-rose-800 dark:border-rose-200 dark:text-rose-200 border rounded-md badge-small" role="status" aria-label="Outline Danger">
<span>Outline Danger</span>
</span>
<span class="badge bg-transparent border-emerald-800 text-emerald-800 dark:border-emerald-200 dark:text-emerald-200 border rounded-md badge-small" role="status" aria-label="Outline Success">
<span>Outline Success</span>
</span>
<span class="badge bg-transparent border-yellow-800 text-yellow-800 dark:border-yellow-800 dark:text-yellow-800 border rounded-md badge-small" role="status" aria-label="Outline Warning">
<span>Outline Warning</span>
</span>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges Colours</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-danger rounded-md badge-small" role="status" aria-label="Ruby on Rails">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-empty_circle icon-desc-empty_circle"><title id="icon-title-empty_circle">Empty circle</title>
<desc id="icon-desc-empty_circle">Empty circle icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span>Ruby on Rails</span>
</span> <span class="badge badge-warning rounded-md badge-small" role="status" aria-label="JavaScript">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-empty_circle icon-desc-empty_circle"><title id="icon-title-empty_circle">Empty circle</title>
<desc id="icon-desc-empty_circle">Empty circle icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span>JavaScript</span>
</span> <span class="badge badge-info rounded-md badge-small" role="status" aria-label="TypeScript">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-empty_circle icon-desc-empty_circle"><title id="icon-title-empty_circle">Empty circle</title>
<desc id="icon-desc-empty_circle">Empty circle icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span>TypeScript</span>
</span> <span class="badge badge-success rounded-md badge-small" role="status" aria-label="Shell">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-empty_circle icon-desc-empty_circle"><title id="icon-title-empty_circle">Empty circle</title>
<desc id="icon-desc-empty_circle">Empty circle icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span>Shell</span>
</span> <span class="badge badge-primary rounded-md badge-small" role="status" aria-label="Go">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-empty_circle icon-desc-empty_circle"><title id="icon-title-empty_circle">Empty circle</title>
<desc id="icon-desc-empty_circle">Empty circle icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span>Go</span>
</span> <span class="badge badge-danger rounded-md badge-small" role="status" aria-label="HTML 5">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-empty_circle icon-desc-empty_circle"><title id="icon-title-empty_circle">Empty circle</title>
<desc id="icon-desc-empty_circle">Empty circle icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span>HTML 5</span>
</span> </div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges with icons</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-success rounded-md badge-small" role="status" aria-label="Paid">
<svg viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="text-emerald-700 dark:text-emerald-400 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-check-circle icon-desc-check-circle"><title id="icon-title-check-circle">Check-circle</title>
<desc id="icon-desc-check-circle">Check-circle icon</desc>
<path d="M9 12.75L11.25 15L15 9.75M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<span>Paid</span>
</span> <span class="badge badge-info rounded-md badge-small" role="status" aria-label="2 minutes ago">
<svg viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="text-sky-700 dark:text-sky-400 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-clock icon-desc-clock"><title id="icon-title-clock">Clock</title>
<desc id="icon-desc-clock">Clock icon</desc>
<path d="M12 6V12H16.5M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<span>2 minutes ago</span>
</span> <span class="badge badge-warning rounded-md badge-small" role="status" aria-label="Default Badge">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" name="info" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="text-orange-700 dark:text-orange-400 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-info icon-desc-info"><title id="icon-title-info">Info</title>
<desc id="icon-desc-info">Info icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"></path>
</svg>
<span>Default Badge</span>
</span> <span class="badge badge-danger rounded-md badge-small" role="status" aria-label="Failed">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 20 20" fill="currentColor" aria-hidden="true" class="text-rose-700 dark:text-rose-400 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-warning icon-desc-warning"><title id="icon-title-warning">Warning</title>
<desc id="icon-desc-warning">Warning icon</desc><path fill-rule="evenodd" d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>
<span>Failed</span>
</span> <span class="badge badge-warning rounded-md badge-small" role="status" aria-label="Refunded">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="text-orange-700 dark:text-orange-400 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-receipt_refund icon-desc-receipt_refund"><title id="icon-title-receipt_refund">Receipt refund</title>
<desc id="icon-desc-receipt_refund">Receipt refund icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="M8.25 9.75h4.875a2.625 2.625 0 010 5.25H12M8.25 9.75L10.5 7.5M8.25 9.75L10.5 12m9-7.243V21.75l-3.75-1.5-3.75 1.5-3.75-1.5-3.75 1.5V4.757c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0111.186 0c1.1.128 1.907 1.077 1.907 2.185z"></path>
</svg>
<span>Refunded</span>
</span> <span class="badge badge-primary rounded-md badge-small" role="status" aria-label="Badge">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="text-sky-700 dark:text-sky-400 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-empty_circle icon-desc-empty_circle"><title id="icon-title-empty_circle">Empty circle</title>
<desc id="icon-desc-empty_circle">Empty circle icon</desc>
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span>Badge</span>
</span> </div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Brands Badges with leading icons</h3>
<div class="flex flex-wrap gap-2 mb-4">
<span class="badge badge-default rounded-md badge-small" role="status" aria-label="Github">
<svg class="w-3 h-3 order-first ms-0 me-1.5 w-5 h-5 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 20 20" role="img" focusable="false" aria-labelledby="icon-title-github icon-desc-github"><title id="icon-title-github">Github</title>
<desc id="icon-desc-github">Github icon</desc>
<path fill-rule="evenodd" d="M10 .333A9.911 9.911 0 0 0 6.866 19.65c.5.092.678-.215.678-.477 0-.237-.01-1.017-.014-1.845-2.757.6-3.338-1.169-3.338-1.169a2.627 2.627 0 0 0-1.1-1.451c-.9-.615.07-.6.07-.6a2.084 2.084 0 0 1 1.518 1.021 2.11 2.11 0 0 0 2.884.823c.044-.503.268-.973.63-1.325-2.2-.25-4.516-1.1-4.516-4.9A3.832 3.832 0 0 1 4.7 7.068a3.56 3.56 0 0 1 .095-2.623s.832-.266 2.726 1.016a9.409 9.409 0 0 1 4.962 0c1.89-1.282 2.717-1.016 2.717-1.016.366.83.402 1.768.1 2.623a3.827 3.827 0 0 1 1.02 2.659c0 3.807-2.319 4.644-4.525 4.889a2.366 2.366 0 0 1 .673 1.834c0 1.326-.012 2.394-.012 2.72 0 .263.18.572.681.475A9.911 9.911 0 0 0 10 .333Z" clip-rule="evenodd"></path>
</svg>
<span>Github</span>
</span> <span class="badge badge-info rounded-md badge-small" role="status" aria-label="Facebook">
<svg class="w-3 h-3 order-first ms-0 me-1.5 w-5 h-5 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 8 19" role="img" focusable="false" aria-labelledby="icon-title-facebook icon-desc-facebook"><title id="icon-title-facebook">Facebook</title>
<desc id="icon-desc-facebook">Facebook icon</desc>
<path fill-rule="evenodd" d="M6.135 3H8V0H6.135a4.147 4.147 0 0 0-4.142 4.142V6H0v3h2v9.938h3V9h2.021l.592-3H5V3.591A.6.6 0 0 1 5.592 3h.543Z" clip-rule="evenodd"></path>
</svg>
<span>Facebook</span>
</span> <span class="badge badge-warning rounded-md badge-small" role="status" aria-label="Basecamp" text_size="xl2">
<svg viewbox="2 2 20 20" id="logo-basecamp" xmlns="http://www.w3.org/2000/svg" class="w-3 h-3 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-basecamp icon-desc-basecamp"><title id="icon-title-basecamp">Basecamp</title>
<desc id="icon-desc-basecamp">Basecamp icon</desc><path fill="currentColor" d="M12.488 19.667a10.107 10.107 0 0 1-7.68-3.379.839.839 0 0 1-.166-.85c.525-1.396 1.945-4.68 3.763-4.701.922 0 1.6.725 2.15 1.306.186.2.385.387.597.559.424-.418 1.256-1.813 1.905-3.208a.835.835 0 0 1 1.514.7c-1.966 4.24-3.014 4.24-3.36 4.24-.766 0-1.322-.59-1.86-1.158-.239-.255-.74-.783-.921-.783-.424.07-1.355 1.536-2.021 3.152a8.349 8.349 0 0 0 6.095 2.457c3.296 0 5.763-.897 6.825-2.457-.38-4.194-2.688-9.877-6.84-9.877-3.515 0-6.163 2.458-7.871 7.275a.833.833 0 1 1-1.57-.556C5.014 6.823 8.19 4 12.488 4c5.613 0 8.2 7.17 8.51 11.692a.823.823 0 0 1-.108.473c-1.302 2.274-4.288 3.502-8.402 3.502Z"></path></svg>
<span>Basecamp</span>
</span> </div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Brands Badges with trailing icons</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-dark rounded-md badge-small" role="status" aria-label="Apple">
<svg class="w-3 h-3 order-last ms-1.5 me-0 w-5 h-5 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 18 21" role="img" focusable="false" aria-labelledby="icon-title-apple icon-desc-apple"><title id="icon-title-apple">Apple</title>
<desc id="icon-desc-apple">Apple icon</desc>
<path d="M14.537 10.625a4.421 4.421 0 0 0 2.684 4.047 10.96 10.96 0 0 1-1.384 2.845c-.834 1.218-1.7 2.432-3.062 2.457-1.339.025-1.769-.794-3.3-.794s-2.009.769-3.275.82c-1.316.049-2.317-1.318-3.158-2.532C1.323 14.984.01 10.451 1.772 7.391a4.9 4.9 0 0 1 4.139-2.507c1.292-.025 2.511.869 3.3.869.789 0 2.271-1.075 3.828-.917A4.67 4.67 0 0 1 16.7 6.82a4.524 4.524 0 0 0-2.161 3.805M12.02 3.193A4.4 4.4 0 0 0 13.06 0a4.482 4.482 0 0 0-2.946 1.516 4.185 4.185 0 0 0-1.061 3.093 3.708 3.708 0 0 0 2.967-1.416Z"></path>
</svg>
<span>Apple</span>
</span> <span class="badge badge-primary rounded-md badge-small" role="status" aria-label="Google">
<svg class="w-3 h-3 order-last ms-1.5 me-0 w-5 h-5 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 18 19" role="img" focusable="false" aria-labelledby="icon-title-google icon-desc-google"><title id="icon-title-google">Google</title>
<desc id="icon-desc-google">Google icon</desc>
<path fill-rule="evenodd" d="M8.842 18.083a8.8 8.8 0 0 1-8.65-8.948 8.841 8.841 0 0 1 8.8-8.652h.153a8.464 8.464 0 0 1 5.7 2.257l-2.193 2.038A5.27 5.27 0 0 0 9.09 3.4a5.882 5.882 0 0 0-.2 11.76h.124a5.091 5.091 0 0 0 5.248-4.057L14.3 11H9V8h8.34c.066.543.095 1.09.088 1.636-.086 5.053-3.463 8.449-8.4 8.449l-.186-.002Z" clip-rule="evenodd"></path>
</svg>
<span>Google</span>
</span> <span class="badge badge-info rounded-md badge-small" role="status" aria-label="twitter">
<svg class="rr_social_button w-3 h-3 order-last ms-1.5 me-0 w-5 h-5 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewbox="0 0 20 20" role="img" focusable="false" aria-labelledby="icon-title-x icon-desc-x"><title id="icon-title-x">X</title>
<desc id="icon-desc-x">X icon</desc>
<path fill="currentColor" d="M12.186 8.672 18.743.947h-2.927l-5.005 5.9-4.44-5.9H0l7.434 9.876-6.986 8.23h2.927l5.434-6.4 4.82 6.4H20L12.186 8.672Zm-2.267 2.671L8.544 9.515 3.2 2.42h2.2l4.312 5.719 1.375 1.828 5.731 7.613h-2.2l-4.699-6.237Z"></path>
</svg>
<span>twitter</span>
</span> </div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges with Close Buttons</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-warning rounded-md gap-1.5 badge-small" data-controller="utilities" data-utilities-target="dismissable" role="status" aria-label="Close it!">
<span>Close it!</span>
<button name="button" type="button" title="Close" class="ml-1 -mr-1 hover:bg-black/10 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-blue-50 focus:ring-blue-600" data-action="utilities#close"><svg viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-x-circle icon-desc-x-circle"><title id="icon-title-x-circle">X-circle</title>
<desc id="icon-desc-x-circle">X-circle icon</desc>
<path d="M9.75 9.75L14.25 14.25M14.25 9.75L9.75 14.25M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<span class="sr-only">Remove badge</span></button>
</span>
<span class="badge badge-info rounded-md gap-1.5 badge-small" data-controller="utilities" data-utilities-target="dismissable" role="status" aria-label="Click button to close!">
<span>Click button to close!</span>
<button name="button" type="button" title="Close" class="ml-1 -mr-1 hover:bg-black/10 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-blue-50 focus:ring-blue-600" data-action="utilities#close"><svg viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-x-circle icon-desc-x-circle"><title id="icon-title-x-circle">X-circle</title>
<desc id="icon-desc-x-circle">X-circle icon</desc>
<path d="M9.75 9.75L14.25 14.25M14.25 9.75L9.75 14.25M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<span class="sr-only">Remove badge</span></button>
</span>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Guthub Badges</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-gh-topic rounded-md badge-small" role="status" aria-label="Github topic">
<span>Github topic</span>
</span>
<span class="badge badge-gh-label rounded-md badge-small" role="status" aria-label="Github label">
<span>Github label</span>
</span>
<span class="badge badge-gh-label-archive rounded-md badge-small" role="status" aria-label="Github label archive">
<span>Github label archive</span>
</span>
<span class="badge badge-gh-label-beta rounded-md badge-small" role="status" aria-label="Github beta">
<span>Github beta</span>
</span>
<a class="badge badge-gh-label-pro cursor-pointer shadow-md shadow-gray-500/50 hover:shadow-gray-500/100 rounded-md badge-small" href="https://github.com/features/security" rel="noopener noreferrer" role="link" aria-label="Github pro">
<span>Github pro</span>
</a>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges with Counters</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-primary rounded-md badge-small" role="status" aria-label="Messages">
<span>Messages</span>
<span class="px-1 ml-1 bg-white bg-opacity-25 rounded-full">5</span>
</span>
<span class="badge badge-danger rounded-md badge-small" role="status" aria-label="Notifications">
<span>Notifications</span>
<span class="px-1 ml-1 bg-white bg-opacity-25 rounded-full">10</span>
</span>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Dismissible Badges</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<span class="badge badge-warning rounded-md badge-small" data-controller="utilities" data-utilities-target="dismissable" data-action="click->utilities#dismiss" role="status" aria-label="Click it!">
<span>Click it!</span>
</span>
<span class="badge badge-dark rounded-md badge-small" data-controller="utilities" data-utilities-target="dismissable" data-action="click->utilities#dismiss" role="status" aria-label="Click to dismiss">
<span>Click to dismiss</span>
</span>
</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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<div class="space-y-12">
<div>
<h3 class="mb-2 text-lg font-semibold">Badge colours and styles</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<% badges.each do |badge| %>
<%= rui_badge(**badge) %>
<% end %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges with Icons and no text</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(status: :warning) do |b| %>
<% b.with_icon(name: "bookmark") %>
<% end %>
<%= rui_badge(status: :success) do |b| %>
<% b.with_icon(name: "check") %>
<% end %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges different colours</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(text: "Gray", status: :gray) %>
<%= rui_badge(text: "red", status: :red) %>
<%= rui_badge(text: "Yellow", status: :yellow) %>
<%= rui_badge(text: "Green", status: :green) %>
<%= rui_badge(text: "Blue", status: :blue) %>
<%= rui_badge(text: "Indigo", status: :indigo) %>
<%= rui_badge(text: "Purple", status: :purple) %>
<%= rui_badge(text: "Pink", status: :pink) %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges sizes</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(text: "Small Gray", size: :small) %>
<%= rui_badge(text: "Medium Gray", size: :medium) %>
<%= rui_badge(text: "Base Gray", size: :base) %>
<%= rui_badge(text: "Large Gray", size: :large) %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges Outline</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(text: "Outline Danger", outline: true, status: :danger) %>
<%= rui_badge(text: "Outline Success", outline: true, status: :success) %>
<%= rui_badge(text: "Outline Warning", outline: true, status: :yellow) %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges Colours</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(status: :danger, text: "Ruby on Rails") do |badge| %>
<% badge.with_icon(name: "empty_circle", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :warning, text: "JavaScript") do |badge| %>
<% badge.with_icon(name: "empty_circle", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :info, text: "TypeScript") do |badge| %>
<% badge.with_icon(name: "empty_circle", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :success, text: "Shell") do |badge| %>
<% badge.with_icon(name: "empty_circle", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :primary, text: "Go") do |badge| %>
<% badge.with_icon(name: "empty_circle", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :danger, text: "HTML 5") do |badge| %>
<% badge.with_icon(name: "empty_circle", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges with icons</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(status: :success, text: "Paid") do |badge| %>
<% badge.with_icon(color: :success, name: "check-circle", position: :leading, classes: 'w-4 h-4')%>
<% end %>
<%= rui_badge(status: :info, text: "2 minutes ago" ) do |badge| %>
<% badge.with_icon(color: :info, name: "clock", position: :leading, classes: 'w-4 h-4')%>
<% end %>
<%= rui_badge(status: :warning, text: "Default Badge" ) do |badge| %>
<% badge.with_icon(color: :warning, name: "info", position: :leading, classes: 'w-4 h-4')%>
<% end %>
<%= rui_badge(status: :danger, text: "Failed" ) do |badge| %>
<% badge.with_icon(color: :danger, name: "warning", position: :leading, classes: 'w-4 h-4')%>
<% end %>
<%= rui_badge(status: :warning, text: "Refunded" ) do |badge| %>
<% badge.with_icon(color: :warning, name: "receipt_refund", position: :leading, classes: 'w-4 h-4')%>
<% end %>
<%= rui_badge(status: :primary, text: "Badge" ) do |badge| %>
<% badge.with_icon(color: :primary, name: "empty_circle", position: :leading, classes: 'w-4 h-4')%>
<% end %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Brands Badges with leading icons</h3>
<div class="flex flex-wrap gap-2 mb-4">
<%= rui_badge(status: :default, text: "Github" ) do |badge| %>
<% badge.with_icon(name: "github", position: :leading, class: "w-3 h-3") %>
<% end %>
<%= rui_badge(status: :info, text: "Facebook" ) do |badge| %>
<% badge.with_icon(name: "facebook", position: :leading, class: "w-3 h-3") %>
<% end %>
<%= rui_badge(status: :warning, text: "Basecamp", text_size: :xl2 ) do |badge| %>
<% badge.with_icon(name: "basecamp", position: :leading, class: "w-3 h-3") %>
<% end %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Brands Badges with trailing icons</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(status: :dark, text: "Apple" ) do |badge| %>
<% badge.with_icon(name: "apple", position: :trailing, class: "w-3 h-3") %>
<% end %>
<%= rui_badge(status: :primary, text: "Google" ) do |badge| %>
<% badge.with_icon(name: "google", position: :trailing, class: "w-3 h-3") %>
<% end %>
<%= rui_badge(status: :info, text: "twitter" ) do |badge| %>
<% badge.with_icon(name: "x", position: :trailing, class: "w-3 h-3") %>
<% end %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges with Close Buttons</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(text: "Close it!", status: :warning, close_button: true) %>
<%= rui_badge(text: "Click button to close!", status: :info, close_button: true) %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Guthub Badges</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(text: "Github topic", status: :gh_topic) %>
<%= rui_badge(text: "Github label", status: :gh_label) %>
<%= rui_badge(text: "Github label archive", status: :gh_label_archive) %>
<%= rui_badge(text: "Github beta", status: :gh_label_beta) %>
<%= rui_badge(text: "Github pro", status: :gh_label_pro, url: "https://github.com/features/security") %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Badges with Counters</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(text: "Messages", status: :primary, counter: 5) %>
<%= rui_badge(text: "Notifications", status: :danger, counter: 10) %>
</div>
</div>
<div>
<h3 class="mb-2 text-lg font-semibold">Dismissible Badges</h3>
<div class="inline-flex flex-wrap gap-2 items-end mt-2">
<%= rui_badge(text: "Click it!", status: :warning, dismissible: true) %>
<%= rui_badge(text: "Click to dismiss", status: :dark, dismissible: true) %>
</div>
</div>
</div>