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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<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" role="status" aria-label="Default Badge">
<span>Default Badge</span>
</span>
<span class="badge badge-primary rounded-md" role="status" aria-label="Primary Badge">
<span>Primary Badge</span>
</span>
<span class="badge badge-info rounded-md" role="status" aria-label="Info Badge">
<span>Info Badge</span>
</span>
<span class="badge badge-success rounded-md" role="status" aria-label="Success Badge">
<span>Success Badge</span>
</span>
<span class="badge badge-warning rounded-md" role="status" aria-label="Warning Badge">
<span>Warning Badge</span>
</span>
<span class="badge badge-danger rounded-md" role="status" aria-label="Danger Badge">
<span>Danger Badge</span>
</span>
<span class="badge badge-dark rounded-md" 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" role="status" aria-label="Warning">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" 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="m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"></path>
</svg>
</span> <span class="badge badge-success rounded-md" role="status" aria-label="Success">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" 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="M20 6 9 17l-5-5"></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" role="status" aria-label="Gray">
<span>Gray</span>
</span>
<span class="badge badge-red rounded-md" role="status" aria-label="red">
<span>red</span>
</span>
<span class="badge badge-yellow rounded-md" role="status" aria-label="Yellow">
<span>Yellow</span>
</span>
<span class="badge badge-green rounded-md" role="status" aria-label="Green">
<span>Green</span>
</span>
<span class="badge badge-blue rounded-md" role="status" aria-label="Blue">
<span>Blue</span>
</span>
<span class="badge badge-indigo rounded-md" role="status" aria-label="Indigo">
<span>Indigo</span>
</span>
<span class="badge badge-purple rounded-md" role="status" aria-label="Purple">
<span>Purple</span>
</span>
<span class="badge badge-pink rounded-md" 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" role="status" aria-label="Small Gray">
<span>Small Gray</span>
</span>
<span class="badge badge-default rounded-md" role="status" aria-label="Medium Gray">
<span>Medium Gray</span>
</span>
<span class="badge badge-default rounded-md text-base" role="status" aria-label="Base Gray">
<span>Base Gray</span>
</span>
<span class="badge badge-default rounded-md" 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" 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" 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" 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" role="status" aria-label="Ruby on Rails">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-circle-full icon-desc-circle-full"><title id="icon-title-circle-full">Circle-full</title>
<desc id="icon-desc-circle-full">Circle-full icon</desc>
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>
</svg>
<span>Ruby on Rails</span>
</span> <span class="badge badge-warning rounded-md" role="status" aria-label="JavaScript">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-circle-full icon-desc-circle-full"><title id="icon-title-circle-full">Circle-full</title>
<desc id="icon-desc-circle-full">Circle-full icon</desc>
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>
</svg>
<span>JavaScript</span>
</span> <span class="badge badge-info rounded-md" role="status" aria-label="TypeScript">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-circle-full icon-desc-circle-full"><title id="icon-title-circle-full">Circle-full</title>
<desc id="icon-desc-circle-full">Circle-full icon</desc>
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>
</svg>
<span>TypeScript</span>
</span> <span class="badge badge-success rounded-md" role="status" aria-label="Shell">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-circle-full icon-desc-circle-full"><title id="icon-title-circle-full">Circle-full</title>
<desc id="icon-desc-circle-full">Circle-full icon</desc>
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>
</svg>
<span>Shell</span>
</span> <span class="badge badge-primary rounded-md" role="status" aria-label="Go">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-circle-full icon-desc-circle-full"><title id="icon-title-circle-full">Circle-full</title>
<desc id="icon-desc-circle-full">Circle-full icon</desc>
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>
</svg>
<span>Go</span>
</span> <span class="badge badge-danger rounded-md" role="status" aria-label="HTML 5">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 order-first ms-0 me-1.5 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-circle-full icon-desc-circle-full"><title id="icon-title-circle-full">Circle-full</title>
<desc id="icon-desc-circle-full">Circle-full icon</desc>
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>
</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" role="status" aria-label="Paid">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 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-circle-check icon-desc-circle-check"><title id="icon-title-circle-check">Circle-check</title>
<desc id="icon-desc-circle-check">Circle-check icon</desc>
<circle cx="12" cy="12" r="10"></circle>
<path d="m9 12 2 2 4-4"></path>
</svg>
<span>Paid</span>
</span> <span class="badge badge-info rounded-md" role="status" aria-label="2 minutes ago">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 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>
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
<span>2 minutes ago</span>
</span> <span class="badge badge-warning rounded-md" role="status" aria-label="Default Badge">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 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>
<circle cx="12" cy="12" r="10"></circle>
<path d="M12 16v-4"></path>
<path d="M12 8h.01"></path>
</svg>
<span>Default Badge</span>
</span> <span class="badge badge-danger rounded-md" role="status" aria-label="Failed">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 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 d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"></path>
<path d="M12 9v4"></path>
<path d="M12 17h.01"></path>
</svg>
<span>Failed</span>
</span> <span class="badge badge-warning rounded-md" role="status" aria-label="Refunded">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 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-text icon-desc-receipt-text"><title id="icon-title-receipt-text">Receipt-text</title>
<desc id="icon-desc-receipt-text">Receipt-text icon</desc>
<path d="M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"></path>
<path d="M14 8H8"></path>
<path d="M16 12H8"></path>
<path d="M13 16H8"></path>
</svg>
<span>Refunded</span>
</span> <span class="badge badge-primary rounded-md" role="status" aria-label="Badge">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 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-circle-full icon-desc-circle-full"><title id="icon-title-circle-full">Circle-full</title>
<desc id="icon-desc-circle-full">Circle-full icon</desc>
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>
</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" role="status" aria-label="Github">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="order-first ms-0 me-1.5 w-5 h-5 shrink-0" 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 d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"></path>
<path d="M9 18c-4.51 2-5-2-7-2"></path>
</svg>
<span>Github</span>
</span> <span class="badge badge-info rounded-md" role="status" aria-label="Facebook">
<svg class="facebook_logo order-first ms-0 me-1.5 w-5 h-5 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" 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 d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>
</svg>
<span>Facebook</span>
</span> <span class="badge badge-warning rounded-md" role="status" aria-label="Basecamp" text_size="xl2">
<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" role="status" aria-label="Apple">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="order-last ms-1.5 me-0 w-5 h-5 shrink-0" 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="M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z"></path>
<path d="M10 2c1 .5 2 2 2 5"></path>
</svg>
<span>Apple</span>
</span> <span class="badge badge-primary rounded-md" role="status" aria-label="Google">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke="currentColor" stroke-width="2" class="order-last ms-1.5 me-0 w-5 h-5 shrink-0" 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 d="M21.35 11.1H12.18V13.83H18.69C18.36 17.64 15.19 19.27 12.19 19.27C8.36003 19.27 5.00003 16.25 5.00003 12C5.00003 7.9 8.20003 4.73 12.2 4.73C15.29 4.73 17.1 6.7 17.1 6.7L19 4.72C19 4.72 16.56 2 12.1 2C6.42003 2 2.03003 6.8 2.03003 12C2.03003 17.05 6.16003 22 12.25 22C17.6 22 21.5 18.33 21.5 12.91C21.5 11.76 21.35 11.1 21.35 11.1Z"></path>
</svg>
<span>Google</span>
</span> <span class="badge badge-info rounded-md" role="status" aria-label="twitter">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="order-last ms-1.5 me-0 w-5 h-5 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-twitter icon-desc-twitter"><title id="icon-title-twitter">Twitter</title>
<desc id="icon-desc-twitter">Twitter icon</desc>
<path d="M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z"></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" 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 xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="hover:scale-125 hover:drop-shadow-md transition duration-200 ease-in-out w-4 h-4 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-circle-x icon-desc-circle-x"><title id="icon-title-circle-x">Circle-x</title>
<desc id="icon-desc-circle-x">Circle-x icon</desc>
<circle cx="12" cy="12" r="10"></circle>
<path d="m15 9-6 6"></path>
<path d="m9 9 6 6"></path>
</svg>
<span class="sr-only">Remove badge</span></button>
</span>
<span class="badge badge-info rounded-md gap-1.5" 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 xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="hover:scale-125 hover:drop-shadow-md transition duration-200 ease-in-out w-4 h-4 shrink-0" role="img" focusable="false" aria-labelledby="icon-title-circle-x icon-desc-circle-x"><title id="icon-title-circle-x">Circle-x</title>
<desc id="icon-desc-circle-x">Circle-x icon</desc>
<circle cx="12" cy="12" r="10"></circle>
<path d="m15 9-6 6"></path>
<path d="m9 9 6 6"></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" role="status" aria-label="Github topic">
<span>Github topic</span>
</span>
<span class="badge badge-gh-label rounded-md" role="status" aria-label="Github label">
<span>Github label</span>
</span>
<span class="badge badge-gh-label-archive rounded-md" role="status" aria-label="Github label archive">
<span>Github label archive</span>
</span>
<span class="badge badge-gh-label-beta rounded-md" 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" 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" 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" 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" 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" 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: "circle-full", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :warning, text: "JavaScript") do |badge| %>
<% badge.with_icon(name: "circle-full", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :info, text: "TypeScript") do |badge| %>
<% badge.with_icon(name: "circle-full", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :success, text: "Shell") do |badge| %>
<% badge.with_icon(name: "circle-full", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :primary, text: "Go") do |badge| %>
<% badge.with_icon(name: "circle-full", position: :leading, classes: 'w-3.5 h-3.5')%>
<% end %>
<%= rui_badge(status: :danger, text: "HTML 5") do |badge| %>
<% badge.with_icon(name: "circle-full", 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: "circle-check", 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-text", position: :leading, classes: 'w-4 h-4')%>
<% end %>
<%= rui_badge(status: :primary, text: "Badge" ) do |badge| %>
<% badge.with_icon(color: :primary, name: "circle-full", 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: "twitter", 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>