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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
<div class="p-6 max-w-7xl mx-auto space-y-8"> <!-- Header / Introduction --> <div class="callout"> <p class="mb-1 text-sm font-mono"> <strong>BUTTON SYSTEM:</strong> Complete reference for all button variants and states<br> <strong>VARIANTS:</strong> Solid | Outline | Link | Sizes | States | Layout </p> <p class="mb-0 text-sm"> Buttons are the primary way users take actions in your application. Use semantic colors to convey intent (primary for main actions, danger for destructive actions, etc.). </p> </div> <!-- Section 1: Solid Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Solid Buttons</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Solid Buttons:</strong> High-emphasis buttons with colored backgrounds. Use for primary actions and important calls-to-action. </p> </div> <div class="flex flex-wrap gap-3"> <button class="btn btn-primary" type="button">Primary</button> <button class="btn btn-secondary" type="button">Secondary</button> <button class="btn btn-success" type="button">Success</button> <button class="btn btn-danger" type="button">Danger</button> <button class="btn btn-warning" type="button">Warning</button> <button class="btn btn-info" type="button">Info</button> <button class="btn btn-light" type="button">Light</button> <button class="btn btn-dark" type="button">Dark</button> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary">Primary</button></code> </div> </div> <!-- Section 2: Outline Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Outline Buttons</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Outline Buttons:</strong> Lower-emphasis buttons with colored borders and transparent backgrounds. Use for secondary actions or when you need lighter visual weight. </p> </div> <div class="flex flex-wrap gap-3"> <button class="btn btn-outline-primary" type="button">Primary</button> <button class="btn btn-outline-secondary" type="button">Secondary</button> <button class="btn btn-outline-success" type="button">Success</button> <button class="btn btn-outline-danger" type="button">Danger</button> <button class="btn btn-outline-warning" type="button">Warning</button> <button class="btn btn-outline-info" type="button">Info</button> <button class="btn btn-outline-light" type="button">Light</button> <button class="btn btn-outline-dark" type="button">Dark</button> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-outline-primary">Primary</button></code> </div> </div> <!-- Section 3: Link Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Link Buttons</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Link Buttons:</strong> Styled like text links but with button behavior. Use for tertiary actions or navigation that looks like a link but needs button semantics. </p> </div> <div class="flex flex-wrap gap-3"> <button class="btn btn-link" type="button">Link Button</button> <button class="btn btn-link" type="button">Another Link</button> <button class="btn btn-link" type="button">Tertiary Action</button> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-link">Link Button</button></code> </div> </div> <!-- Section 4: Button Sizes --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Button Sizes</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Sizes:</strong> Three size options to match your UI density needs. Default size works for most cases. </p> </div> <div class="flex flex-wrap items-center gap-3"> <button class="btn btn-primary btn-lg" type="button">Large button</button> <button class="btn btn-primary" type="button">Default button</button> <button class="btn btn-primary btn-sm" type="button">Small button</button> </div> <div class="mt-4"> <div class="flex flex-wrap items-center gap-3"> <button class="btn btn-outline-secondary btn-lg" type="button">Large outline</button> <button class="btn btn-outline-secondary" type="button">Default outline</button> <button class="btn btn-outline-secondary btn-sm" type="button">Small outline</button> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary btn-lg">Large</button></code><br> <code><button class="btn btn-primary btn-sm">Small</button></code> </div> </div> <!-- Section 5: Disabled State --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Disabled State</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Disabled Buttons:</strong> Use the <code>disabled</code> attribute to indicate buttons that cannot be interacted with. Disabled buttons have reduced opacity and no hover effects. </p> </div> <div class="space-y-4"> <div> <p class="text-sm font-semibold mb-2">Disabled Solid Buttons</p> <div class="flex flex-wrap gap-3"> <button class="btn btn-primary" type="button" disabled>Primary</button> <button class="btn btn-secondary" type="button" disabled>Secondary</button> <button class="btn btn-success" type="button" disabled>Success</button> <button class="btn btn-danger" type="button" disabled>Danger</button> </div> </div> <div> <p class="text-sm font-semibold mb-2">Disabled Outline Buttons</p> <div class="flex flex-wrap gap-3"> <button class="btn btn-outline-primary" type="button" disabled>Primary</button> <button class="btn btn-outline-secondary" type="button" disabled>Secondary</button> <button class="btn btn-outline-success" type="button" disabled>Success</button> <button class="btn btn-outline-danger" type="button" disabled>Danger</button> </div> </div> <div> <p class="text-sm font-semibold mb-2">Disabled Link Button</p> <button class="btn btn-link" type="button" disabled>Disabled Link</button> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary" disabled>Disabled</button></code> </div> </div> <!-- Section 6: Block Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Block Buttons (Full Width)</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Block Buttons:</strong> Full-width buttons that span their container. Use for mobile interfaces, forms, or when you need a button to take up the entire available width. </p> </div> <div class="space-y-3 max-w-md"> <button class="btn btn-primary btn-block" type="button">Block level button</button> <button class="btn btn-secondary btn-block" type="button">Another block button</button> <button class="btn btn-outline-primary btn-block" type="button">Block outline button</button> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary btn-block">Block button</button></code> </div> </div> <!-- Section 7: Usage Examples --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Common Usage Patterns</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Real-world examples:</strong> Typical button combinations you'll use in forms, dialogs, and interfaces. </p> </div> <div class="space-y-6"> <!-- Form Actions --> <div> <p class="text-sm font-semibold mb-3">Form Actions (Primary + Secondary)</p> <div class="flex gap-2"> <button class="btn btn-primary" type="submit">Save Changes</button> <button class="btn btn-secondary" type="button">Cancel</button> </div> </div> <!-- Destructive Action --> <div> <p class="text-sm font-semibold mb-3">Destructive Action with Confirmation</p> <div class="flex gap-2"> <button class="btn btn-danger" type="button">Delete Account</button> <button class="btn btn-outline-secondary" type="button">Nevermind</button> </div> </div> <!-- Call to Action --> <div> <p class="text-sm font-semibold mb-3">Call to Action (CTA)</p> <div class="flex gap-2"> <button class="btn btn-success btn-lg" type="button">Get Started</button> <button class="btn btn-link" type="button">Learn More</button> </div> </div> <!-- Multiple Actions --> <div> <p class="text-sm font-semibold mb-3">Multiple Actions</p> <div class="flex flex-wrap gap-2"> <button class="btn btn-primary" type="button">Approve</button> <button class="btn btn-warning" type="button">Flag for Review</button> <button class="btn btn-outline-danger" type="button">Reject</button> <button class="btn btn-link" type="button">View Details</button> </div> </div> </div> </div> <!-- Section 8: Button Groups --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Button Groups</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Button Groups:</strong> Group multiple buttons together with shared borders. Use for related actions or toggles like toolbar buttons or view switchers. </p> </div> <div class="space-y-6"> <!-- Horizontal Button Group --> <div> <p class="text-sm font-semibold mb-3">Horizontal Group</p> <div class="btn-group"> <button class="btn btn-secondary" type="button">Left</button> <button class="btn btn-secondary" type="button">Middle</button> <button class="btn btn-secondary" type="button">Right</button> </div> </div> <!-- Solid Color Groups --> <div> <p class="text-sm font-semibold mb-3">Solid Button Groups</p> <div class="flex flex-wrap gap-3"> <div class="btn-group"> <button class="btn btn-primary" type="button">1</button> <button class="btn btn-primary" type="button">2</button> <button class="btn btn-primary" type="button">3</button> <button class="btn btn-primary" type="button">4</button> </div> <div class="btn-group"> <button class="btn btn-success" type="button">5</button> <button class="btn btn-success" type="button">6</button> <button class="btn btn-success" type="button">7</button> </div> <div class="btn-group"> <button class="btn btn-danger" type="button">8</button> </div> </div> </div> <!-- Outline Groups --> <div> <p class="text-sm font-semibold mb-3">Outline Button Groups</p> <div class="btn-group"> <button class="btn btn-outline-primary" type="button">Left</button> <button class="btn btn-outline-primary" type="button">Middle</button> <button class="btn btn-outline-primary" type="button">Right</button> </div> </div> <!-- Vertical Button Group --> <div> <p class="text-sm font-semibold mb-3">Vertical Group</p> <div class="btn-group-vertical"> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> </div> </div> <!-- Button Group Sizes --> <div> <p class="text-sm font-semibold mb-3">Button Group Sizes</p> <div class="flex flex-col gap-3"> <div class="btn-group-lg"> <button class="btn btn-secondary" type="button">Large</button> <button class="btn btn-secondary" type="button">Group</button> <button class="btn btn-secondary" type="button">Buttons</button> </div> <div class="btn-group"> <button class="btn btn-secondary" type="button">Default</button> <button class="btn btn-secondary" type="button">Group</button> <button class="btn btn-secondary" type="button">Buttons</button> </div> <div class="btn-group-sm"> <button class="btn btn-secondary" type="button">Small</button> <button class="btn btn-secondary" type="button">Group</button> <button class="btn btn-secondary" type="button">Buttons</button> </div> </div> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><div class="btn-group"><button class="btn btn-secondary">Left</button>...</div></code><br> <code><div class="btn-group-vertical">...</div></code> </div> </div> <!-- Section 9: Dropdown Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Dropdown Buttons</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Dropdown Toggle:</strong> Buttons with dropdown arrows to indicate a menu or additional options. Add the <code>.dropdown-toggle</code> class to automatically display a dropdown arrow. </p> </div> <div class="space-y-4"> <div> <p class="text-sm font-semibold mb-3">Solid Dropdowns</p> <div class="flex flex-wrap gap-3"> <button class="btn btn-primary dropdown-toggle" type="button">Primary</button> <button class="btn btn-success dropdown-toggle" type="button">Success</button> <button class="btn btn-info dropdown-toggle" type="button">Info</button> <button class="btn btn-danger dropdown-toggle" type="button">Danger</button> </div> </div> <div> <p class="text-sm font-semibold mb-3">Outline Dropdowns</p> <div class="flex flex-wrap gap-3"> <button class="btn btn-outline-primary dropdown-toggle" type="button">Primary</button> <button class="btn btn-outline-secondary dropdown-toggle" type="button">Secondary</button> </div> </div> <div> <p class="text-sm font-semibold mb-3">Dropdown Sizes</p> <div class="flex flex-wrap items-center gap-3"> <button class="btn btn-primary btn-lg dropdown-toggle" type="button">Large</button> <button class="btn btn-primary dropdown-toggle" type="button">Default</button> <button class="btn btn-primary btn-sm dropdown-toggle" type="button">Small</button> </div> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary dropdown-toggle">Dropdown</button></code> </div> </div> <!-- Section 10: Checkbox & Radio Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Checkbox & Radio Button Groups</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Button-style Checkboxes/Radios:</strong> Form controls styled as buttons. Use hidden <code>.btn-check</code> inputs with <code><label></code> elements styled as buttons for accessible toggle controls. </p> </div> <div class="space-y-6"> <!-- Checkbox Buttons --> <div> <p class="text-sm font-semibold mb-3">Checkbox Buttons (Multiple Select)</p> <div class="btn-group"> <input type="checkbox" class="btn-check" id="checkbox1" autocomplete="off"> <label class="btn btn-primary" for="checkbox1">Checkbox 1</label> <input type="checkbox" class="btn-check" id="checkbox2" autocomplete="off" checked> <label class="btn btn-primary" for="checkbox2">Checkbox 2</label> <input type="checkbox" class="btn-check" id="checkbox3" autocomplete="off"> <label class="btn btn-primary" for="checkbox3">Checkbox 3</label> </div> </div> <!-- Radio Buttons --> <div> <p class="text-sm font-semibold mb-3">Radio Buttons (Single Select)</p> <div class="btn-group"> <input type="radio" class="btn-check" name="options" id="radio1" autocomplete="off" checked> <label class="btn btn-primary" for="radio1">Radio 1</label> <input type="radio" class="btn-check" name="options" id="radio2" autocomplete="off"> <label class="btn btn-primary" for="radio2">Radio 2</label> <input type="radio" class="btn-check" name="options" id="radio3" autocomplete="off"> <label class="btn btn-primary" for="radio3">Radio 3</label> </div> </div> <!-- Color Variants --> <div> <p class="text-sm font-semibold mb-3">Different Color Variants</p> <div class="space-y-3"> <div class="btn-group"> <input type="checkbox" class="btn-check" id="check-success1" autocomplete="off" checked> <label class="btn btn-success" for="check-success1">Success 1</label> <input type="checkbox" class="btn-check" id="check-success2" autocomplete="off"> <label class="btn btn-success" for="check-success2">Success 2</label> </div> <div class="btn-group"> <input type="checkbox" class="btn-check" id="check-danger1" autocomplete="off"> <label class="btn btn-danger" for="check-danger1">Danger 1</label> <input type="checkbox" class="btn-check" id="check-danger2" autocomplete="off" checked> <label class="btn btn-danger" for="check-danger2">Danger 2</label> </div> </div> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><input type="checkbox" class="btn-check" id="check1"></code><br> <code><label class="btn btn-primary" for="check1">Checkbox</label></code> </div> </div> <!-- Section 11: Pagination --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Pagination</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Pagination:</strong> Navigation component for paging through content. Use <code>.pagination</code> container with <code>.page-item</code> and <code>.page-link</code> classes. </p> </div> <div class="space-y-6"> <!-- Basic Pagination --> <div> <p class="text-sm font-semibold mb-3">Basic Pagination</p> <nav aria-label="Page navigation"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">Previous</a></li> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item active"><a class="page-link" href="#">2</a></li> <li class="page-item"><a class="page-link" href="#">3</a></li> <li class="page-item"><a class="page-link" href="#">Next</a></li> </ul> </nav> </div> <!-- With Disabled States --> <div> <p class="text-sm font-semibold mb-3">With Disabled States</p> <nav aria-label="Page navigation"> <ul class="pagination"> <li class="page-item disabled"><a class="page-link" href="#">Previous</a></li> <li class="page-item active"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item"><a class="page-link" href="#">3</a></li> <li class="page-item"><a class="page-link" href="#">4</a></li> <li class="page-item"><a class="page-link" href="#">5</a></li> <li class="page-item"><a class="page-link" href="#">6</a></li> <li class="page-item"><a class="page-link" href="#">7</a></li> <li class="page-item"><a class="page-link" href="#">8</a></li> <li class="page-item"><a class="page-link" href="#">Next</a></li> </ul> </nav> </div> <!-- Pagination Sizes --> <div> <p class="text-sm font-semibold mb-3">Pagination Sizes</p> <div class="space-y-3"> <nav aria-label="Large pagination"> <ul class="pagination pagination-lg"> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item active"><a class="page-link" href="#">3</a></li> </ul> </nav> <nav aria-label="Default pagination"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item active"><a class="page-link" href="#">3</a></li> </ul> </nav> <nav aria-label="Small pagination"> <ul class="pagination pagination-sm"> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item active"><a class="page-link" href="#">3</a></li> </ul> </nav> </div> </div> <!-- Grouped Pagination (like screenshot) --> <div> <p class="text-sm font-semibold mb-3">Grouped Numbers</p> <div class="flex gap-3"> <nav aria-label="Group 1"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item"><a class="page-link" href="#">3</a></li> <li class="page-item active"><a class="page-link" href="#">4</a></li> </ul> </nav> <nav aria-label="Group 2"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">5</a></li> <li class="page-item"><a class="page-link" href="#">6</a></li> <li class="page-item"><a class="page-link" href="#">7</a></li> </ul> </nav> <nav aria-label="Group 3"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">8</a></li> </ul> </nav> </div> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><ul class="pagination"><li class="page-item active"><a class="page-link">1</a></li></ul></code> </div> </div> <!-- Quick Reference Footer --> <div class="border-t pt-6 mt-8"> <div class="callout"> <p class="mb-1 text-sm font-semibold">Quick Reference</p> <p class="mb-0 text-xs font-mono"> <strong>Base:</strong> .btn<br> <strong>Solid:</strong> .btn-{primary|secondary|success|danger|warning|info|light|dark}<br> <strong>Outline:</strong> .btn-outline-{primary|secondary|success|danger|warning|info|light|dark}<br> <strong>Link:</strong> .btn-link<br> <strong>Sizes:</strong> .btn-sm (small) | default (no class) | .btn-lg (large)<br> <strong>Layout:</strong> .btn-block (full width)<br> <strong>Groups:</strong> .btn-group (horizontal) | .btn-group-vertical | .btn-group-{sm|lg}<br> <strong>Dropdown:</strong> .dropdown-toggle (adds arrow indicator)<br> <strong>Checkbox/Radio:</strong> .btn-check (input) + .btn (label)<br> <strong>Pagination:</strong> .pagination > .page-item > .page-link | .page-item.active | .page-item.disabled<br> <strong>Pagination Sizes:</strong> .pagination-sm | .pagination-lg<br> <strong>State:</strong> disabled attribute (reduces opacity, disables interaction)<br> <strong>Usage:</strong> Combine classes like .btn.btn-primary.btn-lg or .btn.btn-outline-danger.btn-sm </p> </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
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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
<div class="p-6 max-w-7xl mx-auto space-y-8"> <!-- Header / Introduction --> <div class="callout"> <p class="mb-1 text-sm font-mono"> <strong>BUTTON SYSTEM:</strong> Complete reference for all button variants and states<br> <strong>VARIANTS:</strong> Solid | Outline | Link | Sizes | States | Layout </p> <p class="mb-0 text-sm"> Buttons are the primary way users take actions in your application. Use semantic colors to convey intent (primary for main actions, danger for destructive actions, etc.). </p> </div> <!-- Section 1: Solid Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Solid Buttons</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Solid Buttons:</strong> High-emphasis buttons with colored backgrounds. Use for primary actions and important calls-to-action. </p> </div> <div class="flex flex-wrap gap-3"> <button class="btn btn-primary" type="button">Primary</button> <button class="btn btn-secondary" type="button">Secondary</button> <button class="btn btn-success" type="button">Success</button> <button class="btn btn-danger" type="button">Danger</button> <button class="btn btn-warning" type="button">Warning</button> <button class="btn btn-info" type="button">Info</button> <button class="btn btn-light" type="button">Light</button> <button class="btn btn-dark" type="button">Dark</button> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary">Primary</button></code> </div> </div> <!-- Section 2: Outline Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Outline Buttons</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Outline Buttons:</strong> Lower-emphasis buttons with colored borders and transparent backgrounds. Use for secondary actions or when you need lighter visual weight. </p> </div> <div class="flex flex-wrap gap-3"> <button class="btn btn-outline-primary" type="button">Primary</button> <button class="btn btn-outline-secondary" type="button">Secondary</button> <button class="btn btn-outline-success" type="button">Success</button> <button class="btn btn-outline-danger" type="button">Danger</button> <button class="btn btn-outline-warning" type="button">Warning</button> <button class="btn btn-outline-info" type="button">Info</button> <button class="btn btn-outline-light" type="button">Light</button> <button class="btn btn-outline-dark" type="button">Dark</button> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-outline-primary">Primary</button></code> </div> </div> <!-- Section 3: Link Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Link Buttons</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Link Buttons:</strong> Styled like text links but with button behavior. Use for tertiary actions or navigation that looks like a link but needs button semantics. </p> </div> <div class="flex flex-wrap gap-3"> <button class="btn btn-link" type="button">Link Button</button> <button class="btn btn-link" type="button">Another Link</button> <button class="btn btn-link" type="button">Tertiary Action</button> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-link">Link Button</button></code> </div> </div> <!-- Section 4: Button Sizes --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Button Sizes</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Sizes:</strong> Three size options to match your UI density needs. Default size works for most cases. </p> </div> <div class="flex flex-wrap items-center gap-3"> <button class="btn btn-primary btn-lg" type="button">Large button</button> <button class="btn btn-primary" type="button">Default button</button> <button class="btn btn-primary btn-sm" type="button">Small button</button> </div> <div class="mt-4"> <div class="flex flex-wrap items-center gap-3"> <button class="btn btn-outline-secondary btn-lg" type="button">Large outline</button> <button class="btn btn-outline-secondary" type="button">Default outline</button> <button class="btn btn-outline-secondary btn-sm" type="button">Small outline</button> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary btn-lg">Large</button></code><br> <code><button class="btn btn-primary btn-sm">Small</button></code> </div> </div> <!-- Section 5: Disabled State --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Disabled State</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Disabled Buttons:</strong> Use the <code>disabled</code> attribute to indicate buttons that cannot be interacted with. Disabled buttons have reduced opacity and no hover effects. </p> </div> <div class="space-y-4"> <div> <p class="text-sm font-semibold mb-2">Disabled Solid Buttons</p> <div class="flex flex-wrap gap-3"> <button class="btn btn-primary" type="button" disabled>Primary</button> <button class="btn btn-secondary" type="button" disabled>Secondary</button> <button class="btn btn-success" type="button" disabled>Success</button> <button class="btn btn-danger" type="button" disabled>Danger</button> </div> </div> <div> <p class="text-sm font-semibold mb-2">Disabled Outline Buttons</p> <div class="flex flex-wrap gap-3"> <button class="btn btn-outline-primary" type="button" disabled>Primary</button> <button class="btn btn-outline-secondary" type="button" disabled>Secondary</button> <button class="btn btn-outline-success" type="button" disabled>Success</button> <button class="btn btn-outline-danger" type="button" disabled>Danger</button> </div> </div> <div> <p class="text-sm font-semibold mb-2">Disabled Link Button</p> <button class="btn btn-link" type="button" disabled>Disabled Link</button> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary" disabled>Disabled</button></code> </div> </div> <!-- Section 6: Block Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Block Buttons (Full Width)</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Block Buttons:</strong> Full-width buttons that span their container. Use for mobile interfaces, forms, or when you need a button to take up the entire available width. </p> </div> <div class="space-y-3 max-w-md"> <button class="btn btn-primary btn-block" type="button">Block level button</button> <button class="btn btn-secondary btn-block" type="button">Another block button</button> <button class="btn btn-outline-primary btn-block" type="button">Block outline button</button> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary btn-block">Block button</button></code> </div> </div> <!-- Section 7: Usage Examples --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Common Usage Patterns</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Real-world examples:</strong> Typical button combinations you'll use in forms, dialogs, and interfaces. </p> </div> <div class="space-y-6"> <!-- Form Actions --> <div> <p class="text-sm font-semibold mb-3">Form Actions (Primary + Secondary)</p> <div class="flex gap-2"> <button class="btn btn-primary" type="submit">Save Changes</button> <button class="btn btn-secondary" type="button">Cancel</button> </div> </div> <!-- Destructive Action --> <div> <p class="text-sm font-semibold mb-3">Destructive Action with Confirmation</p> <div class="flex gap-2"> <button class="btn btn-danger" type="button">Delete Account</button> <button class="btn btn-outline-secondary" type="button">Nevermind</button> </div> </div> <!-- Call to Action --> <div> <p class="text-sm font-semibold mb-3">Call to Action (CTA)</p> <div class="flex gap-2"> <button class="btn btn-success btn-lg" type="button">Get Started</button> <button class="btn btn-link" type="button">Learn More</button> </div> </div> <!-- Multiple Actions --> <div> <p class="text-sm font-semibold mb-3">Multiple Actions</p> <div class="flex flex-wrap gap-2"> <button class="btn btn-primary" type="button">Approve</button> <button class="btn btn-warning" type="button">Flag for Review</button> <button class="btn btn-outline-danger" type="button">Reject</button> <button class="btn btn-link" type="button">View Details</button> </div> </div> </div> </div> <!-- Section 8: Button Groups --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Button Groups</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Button Groups:</strong> Group multiple buttons together with shared borders. Use for related actions or toggles like toolbar buttons or view switchers. </p> </div> <div class="space-y-6"> <!-- Horizontal Button Group --> <div> <p class="text-sm font-semibold mb-3">Horizontal Group</p> <div class="btn-group"> <button class="btn btn-secondary" type="button">Left</button> <button class="btn btn-secondary" type="button">Middle</button> <button class="btn btn-secondary" type="button">Right</button> </div> </div> <!-- Solid Color Groups --> <div> <p class="text-sm font-semibold mb-3">Solid Button Groups</p> <div class="flex flex-wrap gap-3"> <div class="btn-group"> <button class="btn btn-primary" type="button">1</button> <button class="btn btn-primary" type="button">2</button> <button class="btn btn-primary" type="button">3</button> <button class="btn btn-primary" type="button">4</button> </div> <div class="btn-group"> <button class="btn btn-success" type="button">5</button> <button class="btn btn-success" type="button">6</button> <button class="btn btn-success" type="button">7</button> </div> <div class="btn-group"> <button class="btn btn-danger" type="button">8</button> </div> </div> </div> <!-- Outline Groups --> <div> <p class="text-sm font-semibold mb-3">Outline Button Groups</p> <div class="btn-group"> <button class="btn btn-outline-primary" type="button">Left</button> <button class="btn btn-outline-primary" type="button">Middle</button> <button class="btn btn-outline-primary" type="button">Right</button> </div> </div> <!-- Vertical Button Group --> <div> <p class="text-sm font-semibold mb-3">Vertical Group</p> <div class="btn-group-vertical"> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> <button class="btn btn-primary" type="button">Button</button> </div> </div> <!-- Button Group Sizes --> <div> <p class="text-sm font-semibold mb-3">Button Group Sizes</p> <div class="flex flex-col gap-3"> <div class="btn-group-lg"> <button class="btn btn-secondary" type="button">Large</button> <button class="btn btn-secondary" type="button">Group</button> <button class="btn btn-secondary" type="button">Buttons</button> </div> <div class="btn-group"> <button class="btn btn-secondary" type="button">Default</button> <button class="btn btn-secondary" type="button">Group</button> <button class="btn btn-secondary" type="button">Buttons</button> </div> <div class="btn-group-sm"> <button class="btn btn-secondary" type="button">Small</button> <button class="btn btn-secondary" type="button">Group</button> <button class="btn btn-secondary" type="button">Buttons</button> </div> </div> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><div class="btn-group"><button class="btn btn-secondary">Left</button>...</div></code><br> <code><div class="btn-group-vertical">...</div></code> </div> </div> <!-- Section 9: Dropdown Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Dropdown Buttons</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Dropdown Toggle:</strong> Buttons with dropdown arrows to indicate a menu or additional options. Add the <code>.dropdown-toggle</code> class to automatically display a dropdown arrow. </p> </div> <div class="space-y-4"> <div> <p class="text-sm font-semibold mb-3">Solid Dropdowns</p> <div class="flex flex-wrap gap-3"> <button class="btn btn-primary dropdown-toggle" type="button">Primary</button> <button class="btn btn-success dropdown-toggle" type="button">Success</button> <button class="btn btn-info dropdown-toggle" type="button">Info</button> <button class="btn btn-danger dropdown-toggle" type="button">Danger</button> </div> </div> <div> <p class="text-sm font-semibold mb-3">Outline Dropdowns</p> <div class="flex flex-wrap gap-3"> <button class="btn btn-outline-primary dropdown-toggle" type="button">Primary</button> <button class="btn btn-outline-secondary dropdown-toggle" type="button">Secondary</button> </div> </div> <div> <p class="text-sm font-semibold mb-3">Dropdown Sizes</p> <div class="flex flex-wrap items-center gap-3"> <button class="btn btn-primary btn-lg dropdown-toggle" type="button">Large</button> <button class="btn btn-primary dropdown-toggle" type="button">Default</button> <button class="btn btn-primary btn-sm dropdown-toggle" type="button">Small</button> </div> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><button class="btn btn-primary dropdown-toggle">Dropdown</button></code> </div> </div> <!-- Section 10: Checkbox & Radio Buttons --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Checkbox & Radio Button Groups</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Button-style Checkboxes/Radios:</strong> Form controls styled as buttons. Use hidden <code>.btn-check</code> inputs with <code><label></code> elements styled as buttons for accessible toggle controls. </p> </div> <div class="space-y-6"> <!-- Checkbox Buttons --> <div> <p class="text-sm font-semibold mb-3">Checkbox Buttons (Multiple Select)</p> <div class="btn-group"> <input type="checkbox" class="btn-check" id="checkbox1" autocomplete="off"> <label class="btn btn-primary" for="checkbox1">Checkbox 1</label> <input type="checkbox" class="btn-check" id="checkbox2" autocomplete="off" checked> <label class="btn btn-primary" for="checkbox2">Checkbox 2</label> <input type="checkbox" class="btn-check" id="checkbox3" autocomplete="off"> <label class="btn btn-primary" for="checkbox3">Checkbox 3</label> </div> </div> <!-- Radio Buttons --> <div> <p class="text-sm font-semibold mb-3">Radio Buttons (Single Select)</p> <div class="btn-group"> <input type="radio" class="btn-check" name="options" id="radio1" autocomplete="off" checked> <label class="btn btn-primary" for="radio1">Radio 1</label> <input type="radio" class="btn-check" name="options" id="radio2" autocomplete="off"> <label class="btn btn-primary" for="radio2">Radio 2</label> <input type="radio" class="btn-check" name="options" id="radio3" autocomplete="off"> <label class="btn btn-primary" for="radio3">Radio 3</label> </div> </div> <!-- Color Variants --> <div> <p class="text-sm font-semibold mb-3">Different Color Variants</p> <div class="space-y-3"> <div class="btn-group"> <input type="checkbox" class="btn-check" id="check-success1" autocomplete="off" checked> <label class="btn btn-success" for="check-success1">Success 1</label> <input type="checkbox" class="btn-check" id="check-success2" autocomplete="off"> <label class="btn btn-success" for="check-success2">Success 2</label> </div> <div class="btn-group"> <input type="checkbox" class="btn-check" id="check-danger1" autocomplete="off"> <label class="btn btn-danger" for="check-danger1">Danger 1</label> <input type="checkbox" class="btn-check" id="check-danger2" autocomplete="off" checked> <label class="btn btn-danger" for="check-danger2">Danger 2</label> </div> </div> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><input type="checkbox" class="btn-check" id="check1"></code><br> <code><label class="btn btn-primary" for="check1">Checkbox</label></code> </div> </div> <!-- Section 11: Pagination --> <div class="border-t pt-6"> <h2 class="h4 mb-4">Pagination</h2> <div class="callout mb-4"> <p class="mb-0 text-sm"> <strong>Pagination:</strong> Navigation component for paging through content. Use <code>.pagination</code> container with <code>.page-item</code> and <code>.page-link</code> classes. </p> </div> <div class="space-y-6"> <!-- Basic Pagination --> <div> <p class="text-sm font-semibold mb-3">Basic Pagination</p> <nav aria-label="Page navigation"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">Previous</a></li> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item active"><a class="page-link" href="#">2</a></li> <li class="page-item"><a class="page-link" href="#">3</a></li> <li class="page-item"><a class="page-link" href="#">Next</a></li> </ul> </nav> </div> <!-- With Disabled States --> <div> <p class="text-sm font-semibold mb-3">With Disabled States</p> <nav aria-label="Page navigation"> <ul class="pagination"> <li class="page-item disabled"><a class="page-link" href="#">Previous</a></li> <li class="page-item active"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item"><a class="page-link" href="#">3</a></li> <li class="page-item"><a class="page-link" href="#">4</a></li> <li class="page-item"><a class="page-link" href="#">5</a></li> <li class="page-item"><a class="page-link" href="#">6</a></li> <li class="page-item"><a class="page-link" href="#">7</a></li> <li class="page-item"><a class="page-link" href="#">8</a></li> <li class="page-item"><a class="page-link" href="#">Next</a></li> </ul> </nav> </div> <!-- Pagination Sizes --> <div> <p class="text-sm font-semibold mb-3">Pagination Sizes</p> <div class="space-y-3"> <nav aria-label="Large pagination"> <ul class="pagination pagination-lg"> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item active"><a class="page-link" href="#">3</a></li> </ul> </nav> <nav aria-label="Default pagination"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item active"><a class="page-link" href="#">3</a></li> </ul> </nav> <nav aria-label="Small pagination"> <ul class="pagination pagination-sm"> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item active"><a class="page-link" href="#">3</a></li> </ul> </nav> </div> </div> <!-- Grouped Pagination (like screenshot) --> <div> <p class="text-sm font-semibold mb-3">Grouped Numbers</p> <div class="flex gap-3"> <nav aria-label="Group 1"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item"><a class="page-link" href="#">3</a></li> <li class="page-item active"><a class="page-link" href="#">4</a></li> </ul> </nav> <nav aria-label="Group 2"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">5</a></li> <li class="page-item"><a class="page-link" href="#">6</a></li> <li class="page-item"><a class="page-link" href="#">7</a></li> </ul> </nav> <nav aria-label="Group 3"> <ul class="pagination"> <li class="page-item"><a class="page-link" href="#">8</a></li> </ul> </nav> </div> </div> </div> <div class="mt-4 text-sm text-gray-600"> <code><ul class="pagination"><li class="page-item active"><a class="page-link">1</a></li></ul></code> </div> </div> <!-- Quick Reference Footer --> <div class="border-t pt-6 mt-8"> <div class="callout"> <p class="mb-1 text-sm font-semibold">Quick Reference</p> <p class="mb-0 text-xs font-mono"> <strong>Base:</strong> .btn<br> <strong>Solid:</strong> .btn-{primary|secondary|success|danger|warning|info|light|dark}<br> <strong>Outline:</strong> .btn-outline-{primary|secondary|success|danger|warning|info|light|dark}<br> <strong>Link:</strong> .btn-link<br> <strong>Sizes:</strong> .btn-sm (small) | default (no class) | .btn-lg (large)<br> <strong>Layout:</strong> .btn-block (full width)<br> <strong>Groups:</strong> .btn-group (horizontal) | .btn-group-vertical | .btn-group-{sm|lg}<br> <strong>Dropdown:</strong> .dropdown-toggle (adds arrow indicator)<br> <strong>Checkbox/Radio:</strong> .btn-check (input) + .btn (label)<br> <strong>Pagination:</strong> .pagination > .page-item > .page-link | .page-item.active | .page-item.disabled<br> <strong>Pagination Sizes:</strong> .pagination-sm | .pagination-lg<br> <strong>State:</strong> disabled attribute (reduces opacity, disables interaction)<br> <strong>Usage:</strong> Combine classes like .btn.btn-primary.btn-lg or .btn.btn-outline-danger.btn-sm </p> </div> </div></div>No notes provided.
No params configured.