flowbite-mcp 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -74
- package/build/index.js +20 -36
- package/data/components/accordion.md +39 -53
- package/data/components/alerts.md +27 -44
- package/data/components/avatar.md +20 -33
- package/data/components/badge.md +34 -47
- package/data/components/banner.md +10 -29
- package/data/components/bottom-navigation.md +16 -29
- package/data/components/breadcrumb.md +12 -25
- package/data/components/button-group.md +26 -39
- package/data/components/buttons.md +41 -67
- package/data/components/card.md +34 -47
- package/data/components/carousel.md +25 -39
- package/data/components/chat-bubble.md +36 -50
- package/data/components/clipboard.md +256 -252
- package/data/components/datepicker.md +56 -70
- package/data/components/device-mockups.md +16 -29
- package/data/components/drawer.md +42 -56
- package/data/components/dropdowns.md +66 -80
- package/data/components/footer.md +16 -29
- package/data/components/forms.md +32 -50
- package/data/components/gallery.md +16 -33
- package/data/components/indicators.md +18 -31
- package/data/components/jumbotron.md +12 -25
- package/data/components/kbd.md +14 -27
- package/data/components/list-group.md +14 -27
- package/data/components/mega-menu.md +10 -24
- package/data/components/modal.md +37 -51
- package/data/components/navbar.md +41 -55
- package/data/components/pagination.md +22 -35
- package/data/components/popover.md +36 -51
- package/data/components/progress.md +10 -23
- package/data/components/qr-code.md +41 -133
- package/data/components/rating.md +16 -29
- package/data/components/sidebar.md +15 -30
- package/data/components/skeleton.md +16 -29
- package/data/components/speed-dial.md +40 -55
- package/data/components/spinner.md +14 -27
- package/data/components/stepper.md +14 -27
- package/data/components/tables.md +45 -64
- package/data/components/tabs.md +30 -45
- package/data/components/timeline.md +10 -23
- package/data/components/toast.md +25 -39
- package/data/components/tooltips.md +24 -39
- package/data/components/typography.md +22 -35
- package/data/components/video.md +14 -27
- package/data/forms/checkbox.md +27 -43
- package/data/forms/file-input.md +12 -26
- package/data/forms/floating-label.md +12 -25
- package/data/forms/input-field.md +17 -32
- package/data/forms/number-input.md +83 -93
- package/data/forms/phone-input.md +42 -54
- package/data/forms/radio.md +23 -39
- package/data/forms/range.md +12 -26
- package/data/forms/search-input.md +14 -31
- package/data/forms/select.md +15 -30
- package/data/forms/textarea.md +8 -21
- package/data/forms/timepicker.md +30 -42
- package/data/forms/toggle.md +18 -31
- package/data/plugins/charts.md +542 -526
- package/data/plugins/datatables.md +285 -286
- package/data/plugins/wysiwyg.md +658 -650
- package/data/quickstart.md +24 -24
- package/data/typography/blockquote.md +24 -37
- package/data/typography/headings.md +30 -43
- package/data/typography/hr.md +10 -23
- package/data/typography/images.md +32 -45
- package/data/typography/links.md +16 -29
- package/data/typography/lists.md +22 -35
- package/data/typography/paragraphs.md +30 -43
- package/data/typography/text.md +42 -55
- package/package.json +1 -1
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: docs
|
|
3
|
-
title: Tailwind CSS Stepper - Flowbite
|
|
4
|
-
description: Use the stepper component to show the number of steps required to complete a form inside your application based on Tailwind CSS
|
|
5
|
-
group: components
|
|
6
|
-
toc: true
|
|
7
|
-
|
|
8
|
-
previous: Spinner
|
|
9
|
-
previousLink: components/spinner/
|
|
10
|
-
next: Tables
|
|
11
|
-
nextLink: components/tables/
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
The stepper component can be used to show a numbered list of steps next to a form component to indicate the progress and number of steps that are required to complete and submit the form data.
|
|
15
2
|
|
|
16
3
|
There are multiple examples that you can use including horizontal or vertical aligned stepper components, different sizes, styles, and showing icons or numbers all coded with the utility classes from Tailwind CSS.
|
|
@@ -19,7 +6,7 @@ There are multiple examples that you can use including horizontal or vertical al
|
|
|
19
6
|
|
|
20
7
|
Use this example to show a list of form steps with a number and title of the step in a horizontal alignment.
|
|
21
8
|
|
|
22
|
-
|
|
9
|
+
```html
|
|
23
10
|
|
|
24
11
|
<ol class="flex items-center w-full text-sm font-medium text-center text-body sm:text-base">
|
|
25
12
|
<li class="flex md:w-full items-center text-fg-brand sm:after:content-[''] after:w-full after:h-1 after:border-b after:border-default after:border-px after:hidden sm:after:inline-block after:mx-6 xl:after:mx-10">
|
|
@@ -39,13 +26,13 @@ Use this example to show a list of form steps with a number and title of the ste
|
|
|
39
26
|
Confirmation
|
|
40
27
|
</li>
|
|
41
28
|
</ol>
|
|
42
|
-
|
|
29
|
+
```
|
|
43
30
|
|
|
44
31
|
## Progress stepper
|
|
45
32
|
|
|
46
33
|
This example can be used to show the progress of the stepper component based only on icons and showing a checkmark when the step has been finished.
|
|
47
34
|
|
|
48
|
-
|
|
35
|
+
```html
|
|
49
36
|
|
|
50
37
|
<ol class="flex items-center w-full space-x-4">
|
|
51
38
|
<li class="flex w-full items-center text-fg-brand after:content-[''] after:w-full after:h-1 after:border-b after:border-brand-subtle after:border-4 after:inline-block after:ms-4 after:rounded-full">
|
|
@@ -64,13 +51,13 @@ This example can be used to show the progress of the stepper component based onl
|
|
|
64
51
|
</span>
|
|
65
52
|
</li>
|
|
66
53
|
</ol>
|
|
67
|
-
|
|
54
|
+
```
|
|
68
55
|
|
|
69
56
|
## Detailed stepper
|
|
70
57
|
|
|
71
58
|
Use this example to show an extra subtitle next to the number and the title of the steppper component based on an ordered list element.
|
|
72
59
|
|
|
73
|
-
|
|
60
|
+
```html
|
|
74
61
|
<ol class="items-center w-full space-y-4 sm:flex sm:space-x-8 sm:space-y-0 rtl:space-x-reverse">
|
|
75
62
|
<li class="flex items-center text-fg-brand space-x-3 rtl:space-x-reverse">
|
|
76
63
|
<span class="flex items-center justify-center w-10 h-10 bg-brand-softer rounded-full lg:h-12 lg:w-12 shrink-0">
|
|
@@ -101,13 +88,13 @@ Use this example to show an extra subtitle next to the number and the title of t
|
|
|
101
88
|
</li>
|
|
102
89
|
</ol>
|
|
103
90
|
|
|
104
|
-
|
|
91
|
+
```
|
|
105
92
|
|
|
106
93
|
## Vertical stepper
|
|
107
94
|
|
|
108
95
|
This example can be used to show a list of steps aligned vertically where you can indicate the completed, currently active, and the unexplored steps.
|
|
109
96
|
|
|
110
|
-
|
|
97
|
+
```html
|
|
111
98
|
<ol class="space-y-4 w-72">
|
|
112
99
|
<li>
|
|
113
100
|
<div class="w-full p-4 bg-success-soft border border-success-subtle text-fg-success-strong rounded-base" role="alert">
|
|
@@ -155,13 +142,13 @@ This example can be used to show a list of steps aligned vertically where you ca
|
|
|
155
142
|
</div>
|
|
156
143
|
</li>
|
|
157
144
|
</ol>
|
|
158
|
-
|
|
145
|
+
```
|
|
159
146
|
|
|
160
147
|
## Breadcrumb stepper
|
|
161
148
|
|
|
162
149
|
This example can be used to show the number of steps similar to how a breadcrumb component looks like by using double chevron icons between the items.
|
|
163
150
|
|
|
164
|
-
|
|
151
|
+
```html
|
|
165
152
|
<ol class="flex items-center w-full p-3 space-x-2 text-sm font-medium text-center text-body bg-neutral-primary-soft border border-default rounded-base shadow-xs sm:p-4 sm:space-x-4 rtl:space-x-reverse">
|
|
166
153
|
<li class="flex items-center text-fg-brand">
|
|
167
154
|
<span class="flex items-center justify-center w-5 h-5 me-2 text-xs border border-brand rounded-full shrink-0">
|
|
@@ -185,13 +172,13 @@ This example can be used to show the number of steps similar to how a breadcrumb
|
|
|
185
172
|
</li>
|
|
186
173
|
</ol>
|
|
187
174
|
|
|
188
|
-
|
|
175
|
+
```
|
|
189
176
|
|
|
190
177
|
## Timeline stepper
|
|
191
178
|
|
|
192
179
|
Use this example to show the number of steps inside a timeline component using icons, title, and subtitle for each step.
|
|
193
180
|
|
|
194
|
-
|
|
181
|
+
```html
|
|
195
182
|
|
|
196
183
|
<ol class="relative text-body border-s border-default">
|
|
197
184
|
<li class="mb-10 ms-7">
|
|
@@ -223,13 +210,13 @@ Use this example to show the number of steps inside a timeline component using i
|
|
|
223
210
|
<p class="text-sm">Step details here</p>
|
|
224
211
|
</li>
|
|
225
212
|
</ol>
|
|
226
|
-
|
|
213
|
+
```
|
|
227
214
|
|
|
228
215
|
## Stepper with form
|
|
229
216
|
|
|
230
217
|
Use this example to show the stepper component next to a form layout and change the content based on which currently step your are completing.
|
|
231
218
|
|
|
232
|
-
|
|
219
|
+
```html
|
|
233
220
|
|
|
234
221
|
<ol class="flex items-center w-full space-x-4 mb-8">
|
|
235
222
|
<li class="flex w-full items-center text-fg-brand after:content-[''] after:w-full after:h-1 after:border-b after:border-brand-subtle after:border-4 after:inline-block after:ms-4 after:rounded-full">
|
|
@@ -268,4 +255,4 @@ Use this example to show the stepper component next to a form layout and change
|
|
|
268
255
|
<button type="submit" class="text-white bg-brand box-border border border-transparent hover:bg-brand-strong focus:ring-4 focus:ring-brand-medium shadow-xs font-medium leading-5 rounded-base text-sm px-4 py-2.5 focus:outline-none">Next Step: Payment Info</button>
|
|
269
256
|
</form>
|
|
270
257
|
|
|
271
|
-
|
|
258
|
+
```
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: docs
|
|
3
|
-
title: Tailwind CSS Table - Flowbite
|
|
4
|
-
description: Use the table component to show text, images, links, and other elements inside a structured set of data made up of rows and columns of table cells
|
|
5
|
-
group: components
|
|
6
|
-
toc: true
|
|
7
|
-
|
|
8
|
-
previous: Stepper
|
|
9
|
-
previousLink: components/stepper/
|
|
10
|
-
next: Tabs
|
|
11
|
-
nextLink: components/tabs/
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
The table component represents a set of structured elements made up of rows and columns as table cells that can be used to show data sets to your website users.
|
|
15
2
|
|
|
16
3
|
Get started with multiple variants and styles of these table components built with the utility classes from Tailwind CSS and components from Flowbite.
|
|
@@ -19,7 +6,7 @@ Get started with multiple variants and styles of these table components built wi
|
|
|
19
6
|
|
|
20
7
|
Use the following example of a responsive table component to show multiple rows and columns of text data.
|
|
21
8
|
|
|
22
|
-
|
|
9
|
+
```html
|
|
23
10
|
|
|
24
11
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
25
12
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -97,7 +84,7 @@ Use the following example of a responsive table component to show multiple rows
|
|
|
97
84
|
</tbody>
|
|
98
85
|
</table>
|
|
99
86
|
</div>
|
|
100
|
-
|
|
87
|
+
```
|
|
101
88
|
|
|
102
89
|
## Highlight
|
|
103
90
|
|
|
@@ -107,7 +94,7 @@ Accentuate certain elements inside the table such as the rows, columns or data c
|
|
|
107
94
|
|
|
108
95
|
Use this example to increase the readability of the data sets by alternating the background color of every second table row.
|
|
109
96
|
|
|
110
|
-
|
|
97
|
+
```html
|
|
111
98
|
|
|
112
99
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
113
100
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -219,13 +206,13 @@ Use this example to increase the readability of the data sets by alternating the
|
|
|
219
206
|
</tbody>
|
|
220
207
|
</table>
|
|
221
208
|
</div>
|
|
222
|
-
|
|
209
|
+
```
|
|
223
210
|
|
|
224
211
|
### Striped columns
|
|
225
212
|
|
|
226
213
|
Use this example to increase the readability of the table cells by alternating the background color of every second table column.
|
|
227
214
|
|
|
228
|
-
|
|
215
|
+
```html
|
|
229
216
|
|
|
230
217
|
<div class="relative overflow-x-auto bg-neutral-primary shadow-xs rounded-base border border-default">
|
|
231
218
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -319,13 +306,13 @@ Use this example to increase the readability of the table cells by alternating t
|
|
|
319
306
|
</tbody>
|
|
320
307
|
</table>
|
|
321
308
|
</div>
|
|
322
|
-
|
|
309
|
+
```
|
|
323
310
|
|
|
324
311
|
### Hover state
|
|
325
312
|
|
|
326
313
|
Use the `hover:{bg-*}` utility class from Tailwind CSS to change the background color of a data row when hovering over the element with the cursor.
|
|
327
314
|
|
|
328
|
-
|
|
315
|
+
```html
|
|
329
316
|
|
|
330
317
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
331
318
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -403,7 +390,7 @@ Use the `hover:{bg-*}` utility class from Tailwind CSS to change the background
|
|
|
403
390
|
</tbody>
|
|
404
391
|
</table>
|
|
405
392
|
</div>
|
|
406
|
-
|
|
393
|
+
```
|
|
407
394
|
|
|
408
395
|
## Table layout
|
|
409
396
|
|
|
@@ -413,7 +400,7 @@ Use the following examples of table layouts to show the head, foot or caption of
|
|
|
413
400
|
|
|
414
401
|
This example can be used to show the head of the table component with sortable icons.
|
|
415
402
|
|
|
416
|
-
|
|
403
|
+
```html
|
|
417
404
|
|
|
418
405
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
419
406
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -506,13 +493,13 @@ This example can be used to show the head of the table component with sortable i
|
|
|
506
493
|
</tbody>
|
|
507
494
|
</table>
|
|
508
495
|
</div>
|
|
509
|
-
|
|
496
|
+
```
|
|
510
497
|
|
|
511
498
|
### Table foot
|
|
512
499
|
|
|
513
500
|
Use this example where the `<tfoot>` HTML element can be used in conjunction with the head and caption of the table component.
|
|
514
501
|
|
|
515
|
-
|
|
502
|
+
```html
|
|
516
503
|
|
|
517
504
|
<div class="relative overflow-x-auto">
|
|
518
505
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -573,13 +560,13 @@ Use this example where the `<tfoot>` HTML element can be used in conjunction wit
|
|
|
573
560
|
</tfoot>
|
|
574
561
|
</table>
|
|
575
562
|
</div>
|
|
576
|
-
|
|
563
|
+
```
|
|
577
564
|
|
|
578
565
|
### Table caption
|
|
579
566
|
|
|
580
567
|
Improve accessibility by using a caption inside the table as a heading to better describe what the table is about for screen readers.
|
|
581
568
|
|
|
582
|
-
|
|
569
|
+
```html
|
|
583
570
|
|
|
584
571
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
585
572
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -661,7 +648,7 @@ Improve accessibility by using a caption inside the table as a heading to better
|
|
|
661
648
|
</tbody>
|
|
662
649
|
</table>
|
|
663
650
|
</div>
|
|
664
|
-
|
|
651
|
+
```
|
|
665
652
|
|
|
666
653
|
## Table styles
|
|
667
654
|
|
|
@@ -671,7 +658,7 @@ Get started with the following table styles and choose the one that best fits yo
|
|
|
671
658
|
|
|
672
659
|
Use this example of a table component without any border between the table cells.
|
|
673
660
|
|
|
674
|
-
|
|
661
|
+
```html
|
|
675
662
|
|
|
676
663
|
<div class="relative overflow-x-auto">
|
|
677
664
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -737,13 +724,13 @@ Use this example of a table component without any border between the table cells
|
|
|
737
724
|
</tbody>
|
|
738
725
|
</table>
|
|
739
726
|
</div>
|
|
740
|
-
|
|
727
|
+
```
|
|
741
728
|
|
|
742
729
|
### Table with shadow
|
|
743
730
|
|
|
744
731
|
Use this example to apply a shadow-sm border to the table component.
|
|
745
732
|
|
|
746
|
-
|
|
733
|
+
```html
|
|
747
734
|
|
|
748
735
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
749
736
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -821,13 +808,13 @@ Use this example to apply a shadow-sm border to the table component.
|
|
|
821
808
|
</tbody>
|
|
822
809
|
</table>
|
|
823
810
|
</div>
|
|
824
|
-
|
|
811
|
+
```
|
|
825
812
|
|
|
826
813
|
## Overflow scrolling
|
|
827
814
|
|
|
828
815
|
Use this example where we apply `overflow-x-auto` to enable horizontal scrolling if the content inside the table overflows that maximum width.
|
|
829
816
|
|
|
830
|
-
|
|
817
|
+
```html
|
|
831
818
|
|
|
832
819
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
833
820
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -1199,13 +1186,13 @@ Use this example where we apply `overflow-x-auto` to enable horizontal scrolling
|
|
|
1199
1186
|
</tbody>
|
|
1200
1187
|
</table>
|
|
1201
1188
|
</div>
|
|
1202
|
-
|
|
1189
|
+
```
|
|
1203
1190
|
|
|
1204
1191
|
## Table search
|
|
1205
1192
|
|
|
1206
1193
|
Use this example to show a search bar that can be used to query through data inside the table component.
|
|
1207
1194
|
|
|
1208
|
-
|
|
1195
|
+
```html
|
|
1209
1196
|
|
|
1210
1197
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
1211
1198
|
<div class="p-4">
|
|
@@ -1385,17 +1372,15 @@ Use this example to show a search bar that can be used to query through data ins
|
|
|
1385
1372
|
</tbody>
|
|
1386
1373
|
</table>
|
|
1387
1374
|
</div>
|
|
1388
|
-
|
|
1375
|
+
```
|
|
1376
|
+
|
|
1389
1377
|
|
|
1390
|
-
<div class="mt-8 -mb-5">
|
|
1391
|
-
{{< requires_js >}}
|
|
1392
|
-
</div>
|
|
1393
1378
|
|
|
1394
1379
|
## Table filter
|
|
1395
1380
|
|
|
1396
1381
|
Use this example with a filter bar to select certain data sets inside the table based on the options that you've selected.
|
|
1397
1382
|
|
|
1398
|
-
|
|
1383
|
+
```html
|
|
1399
1384
|
|
|
1400
1385
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
1401
1386
|
<div class="p-4 flex items-center justify-between space-x-4">
|
|
@@ -1597,13 +1582,13 @@ Use this example with a filter bar to select certain data sets inside the table
|
|
|
1597
1582
|
</tbody>
|
|
1598
1583
|
</table>
|
|
1599
1584
|
</div>
|
|
1600
|
-
|
|
1585
|
+
```
|
|
1601
1586
|
|
|
1602
1587
|
## Table pagination
|
|
1603
1588
|
|
|
1604
1589
|
Paginate the table data when using larger data sets based on any given amount of results per page.
|
|
1605
1590
|
|
|
1606
|
-
|
|
1591
|
+
```html
|
|
1607
1592
|
|
|
1608
1593
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
1609
1594
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -1892,13 +1877,13 @@ Paginate the table data when using larger data sets based on any given amount of
|
|
|
1892
1877
|
</ul>
|
|
1893
1878
|
</nav>
|
|
1894
1879
|
</div>
|
|
1895
|
-
|
|
1880
|
+
```
|
|
1896
1881
|
|
|
1897
1882
|
## Checkbox selection
|
|
1898
1883
|
|
|
1899
1884
|
Checkboxes can be used inside table data rows to select multiple data sets and apply a bulk action.
|
|
1900
1885
|
|
|
1901
|
-
|
|
1886
|
+
```html
|
|
1902
1887
|
|
|
1903
1888
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
1904
1889
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -2069,17 +2054,15 @@ Checkboxes can be used inside table data rows to select multiple data sets and a
|
|
|
2069
2054
|
</tbody>
|
|
2070
2055
|
</table>
|
|
2071
2056
|
</div>
|
|
2072
|
-
|
|
2057
|
+
```
|
|
2058
|
+
|
|
2073
2059
|
|
|
2074
|
-
<div class="mt-8 -mb-5">
|
|
2075
|
-
{{< requires_js >}}
|
|
2076
|
-
</div>
|
|
2077
2060
|
|
|
2078
2061
|
## Table with users
|
|
2079
2062
|
|
|
2080
2063
|
Use this example of a table where we show a data set of users and showing a profile picture, name, email, online status, and more.
|
|
2081
2064
|
|
|
2082
|
-
|
|
2065
|
+
```html
|
|
2083
2066
|
|
|
2084
2067
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
2085
2068
|
<div class="flex items-center justify-between flex-column flex-wrap md:flex-row space-y-4 md:space-y-0 p-4">
|
|
@@ -2271,13 +2254,13 @@ Use this example of a table where we show a data set of users and showing a prof
|
|
|
2271
2254
|
</tbody>
|
|
2272
2255
|
</table>
|
|
2273
2256
|
</div>
|
|
2274
|
-
|
|
2257
|
+
```
|
|
2275
2258
|
|
|
2276
2259
|
## Table with products
|
|
2277
2260
|
|
|
2278
2261
|
Get started with this example to show a list of products inside the table and show a preview image, product name, quantity selector, price and actions tab.
|
|
2279
2262
|
|
|
2280
|
-
|
|
2263
|
+
```html
|
|
2281
2264
|
|
|
2282
2265
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
2283
2266
|
<table class="w-full text-sm text-left rtl:text-right text-body">
|
|
@@ -2388,17 +2371,15 @@ Get started with this example to show a list of products inside the table and sh
|
|
|
2388
2371
|
</tbody>
|
|
2389
2372
|
</table>
|
|
2390
2373
|
</div>
|
|
2391
|
-
|
|
2374
|
+
```
|
|
2375
|
+
|
|
2392
2376
|
|
|
2393
|
-
<div class="mt-8 -mb-5">
|
|
2394
|
-
{{< requires_js >}}
|
|
2395
|
-
</div>
|
|
2396
2377
|
|
|
2397
2378
|
## Table with modal
|
|
2398
2379
|
|
|
2399
2380
|
Use this example to show a modal with a form where you can edit table data by clicking on one of the rows.
|
|
2400
2381
|
|
|
2401
|
-
|
|
2382
|
+
```html
|
|
2402
2383
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
2403
2384
|
<div class="flex items-center justify-between flex-column md:flex-row flex-wrap space-y-4 md:space-y-0 p-4">
|
|
2404
2385
|
<div>
|
|
@@ -2643,13 +2624,13 @@ Use this example to show a modal with a form where you can edit table data by cl
|
|
|
2643
2624
|
</div>
|
|
2644
2625
|
</div>
|
|
2645
2626
|
</div>
|
|
2646
|
-
|
|
2627
|
+
```
|
|
2647
2628
|
|
|
2648
2629
|
## Table colors
|
|
2649
2630
|
|
|
2650
2631
|
Apply any color to the table element by using the `bg-{color}` and `text-{color}` color class variants from Tailwind CSS.
|
|
2651
2632
|
|
|
2652
|
-
|
|
2633
|
+
```html
|
|
2653
2634
|
|
|
2654
2635
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
2655
2636
|
<table class="w-full text-sm text-left rtl:text-right text-fg-brand-subtle">
|
|
@@ -2761,13 +2742,13 @@ Apply any color to the table element by using the `bg-{color}` and `text-{color}
|
|
|
2761
2742
|
</tbody>
|
|
2762
2743
|
</table>
|
|
2763
2744
|
</div>
|
|
2764
|
-
|
|
2745
|
+
```
|
|
2765
2746
|
|
|
2766
2747
|
### Striped rows color
|
|
2767
2748
|
|
|
2768
2749
|
Use this example to apply a different color to every second row inside the table.
|
|
2769
2750
|
|
|
2770
|
-
|
|
2751
|
+
```html
|
|
2771
2752
|
|
|
2772
2753
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
2773
2754
|
<table class="w-full text-sm text-left rtl:text-right text-fg-brand-subtle">
|
|
@@ -2879,13 +2860,13 @@ Use this example to apply a different color to every second row inside the table
|
|
|
2879
2860
|
</tbody>
|
|
2880
2861
|
</table>
|
|
2881
2862
|
</div>
|
|
2882
|
-
|
|
2863
|
+
```
|
|
2883
2864
|
|
|
2884
2865
|
### Striped columns color
|
|
2885
2866
|
|
|
2886
2867
|
Use this example to apply a different color to every second column inside a colored table.
|
|
2887
2868
|
|
|
2888
|
-
|
|
2869
|
+
```html
|
|
2889
2870
|
|
|
2890
2871
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
2891
2872
|
<table class="w-full text-sm text-left rtl:text-right text-fg-brand-subtle">
|
|
@@ -2997,13 +2978,13 @@ Use this example to apply a different color to every second column inside a colo
|
|
|
2997
2978
|
</tbody>
|
|
2998
2979
|
</table>
|
|
2999
2980
|
</div>
|
|
3000
|
-
|
|
2981
|
+
```
|
|
3001
2982
|
|
|
3002
2983
|
### Hover state
|
|
3003
2984
|
|
|
3004
2985
|
Use this example to apply a different color to every second row inside the table with a colored background.
|
|
3005
2986
|
|
|
3006
|
-
|
|
2987
|
+
```html
|
|
3007
2988
|
|
|
3008
2989
|
<div class="relative overflow-x-auto bg-neutral-primary-soft shadow-xs rounded-base border border-default">
|
|
3009
2990
|
<table class="w-full text-sm text-left rtl:text-right text-fg-brand-subtle">
|
|
@@ -3115,7 +3096,7 @@ Use this example to apply a different color to every second row inside the table
|
|
|
3115
3096
|
</tbody>
|
|
3116
3097
|
</table>
|
|
3117
3098
|
</div>
|
|
3118
|
-
|
|
3099
|
+
```
|
|
3119
3100
|
|
|
3120
3101
|
## More examples
|
|
3121
3102
|
|