flowbite-mcp 1.1.2 → 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,36 +1,23 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: docs
|
|
3
|
-
title: Tailwind CSS Images - Flowbite
|
|
4
|
-
description: The image component can be used to embed images inside the web page in articles and sections based on multiple styles, sizes, layouts and hover animations
|
|
5
|
-
group: typography
|
|
6
|
-
toc: true
|
|
7
|
-
|
|
8
|
-
previous: Blockquote
|
|
9
|
-
previousLink: typography/blockquote/
|
|
10
|
-
next: Lists
|
|
11
|
-
nextLink: typography/lists/
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
Get started with a collection of responsive image components coded with the utility classes from Tailwind CSS that you can use inside articles, cards, sections, and other components based on multiple styles, sizes, layouts, and hover animations.
|
|
15
2
|
|
|
16
3
|
## Default image
|
|
17
4
|
|
|
18
5
|
Use this example to show the a responsive image that won't grow beyond the maximum original width.
|
|
19
6
|
|
|
20
|
-
|
|
7
|
+
```html
|
|
21
8
|
<img class="h-auto max-w-full" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
22
|
-
|
|
9
|
+
```
|
|
23
10
|
|
|
24
11
|
## Image caption
|
|
25
12
|
|
|
26
13
|
This example can be used to add a caption for the image often used inside articles.
|
|
27
14
|
|
|
28
|
-
|
|
15
|
+
```html
|
|
29
16
|
<figure class="max-w-lg">
|
|
30
17
|
<img class="h-auto max-w-full rounded-base" src="/docs/images/examples/image-3@2x.jpg" alt="image description">
|
|
31
18
|
<figcaption class="mt-2 text-sm text-center text-body">Image caption</figcaption>
|
|
32
19
|
</figure>
|
|
33
|
-
|
|
20
|
+
```
|
|
34
21
|
|
|
35
22
|
## Rounded corners
|
|
36
23
|
|
|
@@ -40,39 +27,39 @@ Apply rounded corners to the image by using the specific utility classes from Ta
|
|
|
40
27
|
|
|
41
28
|
Use this example to apply rounded corners to the image by using the `rounded-{size}` class where the size can be anything from small to extra large.
|
|
42
29
|
|
|
43
|
-
|
|
30
|
+
```html
|
|
44
31
|
<img class="h-auto max-w-lg rounded-base" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
45
|
-
|
|
32
|
+
```
|
|
46
33
|
|
|
47
34
|
### Full circle
|
|
48
35
|
|
|
49
36
|
Use this example to mask the image inside a circle using the `rounded-full` utility class from Tailwind CSS.
|
|
50
37
|
|
|
51
|
-
|
|
38
|
+
```html
|
|
52
39
|
<img class="rounded-full w-96 h-96" src="/docs/images/examples/image-4@2x.jpg" alt="image description">
|
|
53
|
-
|
|
40
|
+
```
|
|
54
41
|
|
|
55
42
|
## Image shadow
|
|
56
43
|
|
|
57
44
|
This example can be used to show a shadow effect for the image using the `shadow-{size}` utility class.
|
|
58
45
|
|
|
59
|
-
|
|
46
|
+
```html
|
|
60
47
|
<img class="h-auto max-w-xl rounded-base shadow-xl dark:shadow-gray-800" src="/docs/images/examples/image-2@2x.jpg" alt="image description">
|
|
61
|
-
|
|
48
|
+
```
|
|
62
49
|
|
|
63
50
|
## Retina-ready
|
|
64
51
|
|
|
65
52
|
Use the `srcset` attribute to set Retina-ready images with double resolution.
|
|
66
53
|
|
|
67
|
-
|
|
54
|
+
```html
|
|
68
55
|
<img srcset="/docs/images/examples/image-1.jpg 1x, /docs/images/examples/image-1@2x.jpg 2x" class="w-full h-auto max-w-xl rounded-base" alt="image description">
|
|
69
|
-
|
|
56
|
+
```
|
|
70
57
|
|
|
71
58
|
## Image card
|
|
72
59
|
|
|
73
60
|
Use this example to make the image a card item with a link and a short text description.
|
|
74
61
|
|
|
75
|
-
|
|
62
|
+
```html
|
|
76
63
|
<figure class="relative max-w-sm transition-all duration-300 cursor-pointer filter grayscale hover:grayscale-0">
|
|
77
64
|
<a href="#">
|
|
78
65
|
<img class="rounded-base" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/content/content-gallery-3.png" alt="image description">
|
|
@@ -81,7 +68,7 @@ Use this example to make the image a card item with a link and a short text desc
|
|
|
81
68
|
<p>Do you want to get notified when a new component is added to Flowbite?</p>
|
|
82
69
|
</figcaption>
|
|
83
70
|
</figure>
|
|
84
|
-
|
|
71
|
+
```
|
|
85
72
|
|
|
86
73
|
## Image effects
|
|
87
74
|
|
|
@@ -91,17 +78,17 @@ Use image effects such as grayscale or blur to change the appearances of the ima
|
|
|
91
78
|
|
|
92
79
|
Use the filter option and apply a grayscale to the image element using the `grayscale` class.
|
|
93
80
|
|
|
94
|
-
|
|
81
|
+
```html
|
|
95
82
|
<img class="h-auto max-w-lg transition-all duration-300 rounded-base cursor-pointer filter grayscale hover:grayscale-0" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/content/content-gallery-3.png" alt="image description">
|
|
96
|
-
|
|
83
|
+
```
|
|
97
84
|
|
|
98
85
|
### Blur
|
|
99
86
|
|
|
100
87
|
Apply a blur by using the `blur-{size}` utility class from Tailwind CSS to an image component.
|
|
101
88
|
|
|
102
|
-
|
|
89
|
+
```html
|
|
103
90
|
<img class="h-auto max-w-lg transition-all duration-300 rounded-base blur-xs hover:blur-none" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/content/content-gallery-3.png" alt="image description">
|
|
104
|
-
|
|
91
|
+
```
|
|
105
92
|
|
|
106
93
|
## Alignment
|
|
107
94
|
|
|
@@ -111,25 +98,25 @@ Align the image component to the left, center or right side of the document page
|
|
|
111
98
|
|
|
112
99
|
By default, the image component will be aligned to the left side of the page.
|
|
113
100
|
|
|
114
|
-
|
|
101
|
+
```html
|
|
115
102
|
<img class="h-auto max-w-lg" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
116
|
-
|
|
103
|
+
```
|
|
117
104
|
|
|
118
105
|
### Center
|
|
119
106
|
|
|
120
107
|
Horizontally align the image to the center of the page using the `mx-auto` class.
|
|
121
108
|
|
|
122
|
-
|
|
109
|
+
```html
|
|
123
110
|
<img class="h-auto max-w-lg mx-auto" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
124
|
-
|
|
111
|
+
```
|
|
125
112
|
|
|
126
113
|
### Right
|
|
127
114
|
|
|
128
115
|
Use the `ml-auto` (or `ms-auto`) class to align the image to the right side of the page.
|
|
129
116
|
|
|
130
|
-
|
|
117
|
+
```html
|
|
131
118
|
<img class="h-auto max-w-lg ms-auto" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
132
|
-
|
|
119
|
+
```
|
|
133
120
|
|
|
134
121
|
## Sizes
|
|
135
122
|
|
|
@@ -139,30 +126,30 @@ Set the size of the image using the `w-{size}` and `h-{size}` or `max-w-{size}`
|
|
|
139
126
|
|
|
140
127
|
Use the `max-w-xs` class to set a small size of the image.
|
|
141
128
|
|
|
142
|
-
|
|
129
|
+
```html
|
|
143
130
|
<img class="h-auto max-w-xs" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
144
|
-
|
|
131
|
+
```
|
|
145
132
|
|
|
146
133
|
### Medium
|
|
147
134
|
|
|
148
135
|
Use the `max-w-md` class to set a medium size of the image.
|
|
149
136
|
|
|
150
|
-
|
|
137
|
+
```html
|
|
151
138
|
<img class="h-auto max-w-md" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
152
|
-
|
|
139
|
+
```
|
|
153
140
|
|
|
154
141
|
### Large
|
|
155
142
|
|
|
156
143
|
Use the `max-w-xl` class to set a large size of the image.
|
|
157
144
|
|
|
158
|
-
|
|
145
|
+
```html
|
|
159
146
|
<img class="h-auto max-w-xl" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
160
|
-
|
|
147
|
+
```
|
|
161
148
|
|
|
162
149
|
### Full width
|
|
163
150
|
|
|
164
151
|
Use the `max-w-full` class to set the full width of the image as long as it doesn't become larger than the original source.
|
|
165
152
|
|
|
166
|
-
|
|
153
|
+
```html
|
|
167
154
|
<img class="h-auto max-w-full" src="/docs/images/examples/image-1@2x.jpg" alt="image description">
|
|
168
|
-
|
|
155
|
+
```
|
package/data/typography/links.md
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: docs
|
|
3
|
-
title: Tailwind CSS Links - Flowbite
|
|
4
|
-
description: The link component can be used to set hyperlinks from one page to another or to an external website when clicking on an inline text item, button, or card
|
|
5
|
-
group: typography
|
|
6
|
-
toc: true
|
|
7
|
-
|
|
8
|
-
previous: Lists
|
|
9
|
-
previousLink: typography/lists/
|
|
10
|
-
next: Text
|
|
11
|
-
nextLink: typography/text/
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
Get started with the link component to enable hyperlinks across pages and external websites applied to elements such as inline text, buttons, cards, inside paragraphs, and more.
|
|
15
2
|
|
|
16
3
|
Hyperlinks are a great way to reduce bounce rate of the current page and encourage visitors to browse your website and become a returning user.
|
|
@@ -19,66 +6,66 @@ Hyperlinks are a great way to reduce bounce rate of the current page and encoura
|
|
|
19
6
|
|
|
20
7
|
Use this example to set default styles to an inline link element.
|
|
21
8
|
|
|
22
|
-
|
|
9
|
+
```html
|
|
23
10
|
<a href="#" class="font-medium text-fg-brand hover:underline">Read more</a>
|
|
24
|
-
|
|
11
|
+
```
|
|
25
12
|
|
|
26
13
|
## Button
|
|
27
14
|
|
|
28
15
|
This example can be used to set a hyperlink on a button component.
|
|
29
16
|
|
|
30
|
-
|
|
17
|
+
```html
|
|
31
18
|
<a href="#" 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">Read more</a>
|
|
32
|
-
|
|
19
|
+
```
|
|
33
20
|
|
|
34
21
|
## Paragraph
|
|
35
22
|
|
|
36
23
|
Use this example to set a link inside a paragraph with an underline style.
|
|
37
24
|
|
|
38
|
-
|
|
25
|
+
```html
|
|
39
26
|
<p class="text-body">The free updates that will be provided is based on the <a href="#" class="font-medium text-fg-brand underline hover:no-underline">roadmap</a> that we have laid out for this project. It is also possible that we will provide extra updates outside of the roadmap as well.</p>
|
|
40
|
-
|
|
27
|
+
```
|
|
41
28
|
|
|
42
29
|
## Icon link
|
|
43
30
|
|
|
44
31
|
This example can be used to set a custom [SVG icon](https://flowbite.com/icons/) inside the hyperlink element.
|
|
45
32
|
|
|
46
|
-
|
|
33
|
+
```html
|
|
47
34
|
<p class="text-body">500,000 people & companies have made over a million apps with Glide. <a href="#" class="inline-flex items-center font-medium text-fg-brand hover:underline">
|
|
48
35
|
Read their stories
|
|
49
36
|
<svg class="w-5 h-5 ms-1 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
|
|
50
37
|
</a></p>
|
|
51
38
|
|
|
52
|
-
|
|
39
|
+
```
|
|
53
40
|
|
|
54
41
|
## CTA link
|
|
55
42
|
|
|
56
43
|
Use this example to set a hyperlink on a CTA element with text and a custom icon.
|
|
57
44
|
|
|
58
|
-
|
|
45
|
+
```html
|
|
59
46
|
<a href="#" class="inline-flex items-center justify-center p-5 text-base font-medium border border-default hover:border-default-medium text-body rounded-base bg-neutral-secondary-soft hover:text-heading hover:bg-neutral-tertiary">
|
|
60
47
|
<svg aria-hidden="true" class="w-5 h-5 me-3" viewBox="0 0 22 31" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_4151_63004)"><path d="M5.50085 30.1242C8.53625 30.1242 10.9998 27.8749 10.9998 25.1035V20.0828H5.50085C2.46546 20.0828 0.00195312 22.332 0.00195312 25.1035C0.00195312 27.8749 2.46546 30.1242 5.50085 30.1242Z" fill="#0ACF83"/><path d="M0.00195312 15.062C0.00195312 12.2905 2.46546 10.0413 5.50085 10.0413H10.9998V20.0827H5.50085C2.46546 20.0827 0.00195312 17.8334 0.00195312 15.062Z" fill="#A259FF"/><path d="M0.00195312 5.02048C0.00195312 2.24904 2.46546 -0.000244141 5.50085 -0.000244141H10.9998V10.0412H5.50085C2.46546 10.0412 0.00195312 7.79193 0.00195312 5.02048Z" fill="#F24E1E"/><path d="M11 -0.000244141H16.4989C19.5343 -0.000244141 21.9978 2.24904 21.9978 5.02048C21.9978 7.79193 19.5343 10.0412 16.4989 10.0412H11V-0.000244141Z" fill="#FF7262"/><path d="M21.9978 15.062C21.9978 17.8334 19.5343 20.0827 16.4989 20.0827C13.4635 20.0827 11 17.8334 11 15.062C11 12.2905 13.4635 10.0413 16.4989 10.0413C19.5343 10.0413 21.9978 12.2905 21.9978 15.062Z" fill="#1ABCFE"/></g><defs><clipPath id="clip0_4151_63004"><rect width="22" height="30.1244" fill="white" transform="translate(0 -0.000244141)"/></clipPath></defs></svg>
|
|
61
48
|
<span class="w-full">Get started with our Figma Design System</span>
|
|
62
49
|
<svg class="w-6 h-6 ms-1 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
|
|
63
50
|
</a>
|
|
64
|
-
|
|
51
|
+
```
|
|
65
52
|
|
|
66
53
|
## Card link
|
|
67
54
|
|
|
68
55
|
Use this example to set a hyperlink on a card component.
|
|
69
56
|
|
|
70
|
-
|
|
57
|
+
```html
|
|
71
58
|
<a href="#" class="bg-neutral-primary-soft block max-w-sm p-6 border border-default rounded-base shadow-xs hover:bg-neutral-secondary-medium">
|
|
72
59
|
<h5 class="mb-3 text-2xl font-semibold tracking-tight text-heading leading-8">Noteworthy technology acquisitions 2021</h5>
|
|
73
60
|
<p class="text-body">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>
|
|
74
61
|
</a>
|
|
75
|
-
|
|
62
|
+
```
|
|
76
63
|
|
|
77
64
|
## Image link
|
|
78
65
|
|
|
79
66
|
This example can be used to set a hyperlink on an image inside a card component.
|
|
80
67
|
|
|
81
|
-
|
|
68
|
+
```html
|
|
82
69
|
<div class="bg-neutral-primary-soft block max-w-sm border border-default rounded-base shadow-xs">
|
|
83
70
|
<a href="#">
|
|
84
71
|
<img class="rounded-t-base" src="/docs/images/blog/image-1.jpg" alt="" />
|
|
@@ -97,13 +84,13 @@ This example can be used to set a hyperlink on an image inside a card component.
|
|
|
97
84
|
</a>
|
|
98
85
|
</div>
|
|
99
86
|
</div>
|
|
100
|
-
|
|
87
|
+
```
|
|
101
88
|
|
|
102
89
|
## Card inner link
|
|
103
90
|
|
|
104
91
|
Use this example to show a highlighted link inside a card component.
|
|
105
92
|
|
|
106
|
-
|
|
93
|
+
```html
|
|
107
94
|
<div class="bg-neutral-primary-soft block max-w-sm p-6 border border-default rounded-base shadow-xs">
|
|
108
95
|
<svg class="w-7 h-7 mb-3 text-body" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 21v-9m3-4H7.5a2.5 2.5 0 1 1 0-5c1.5 0 2.875 1.25 3.875 2.5M14 21v-9m-9 0h14v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8ZM4 8h16a1 1 0 0 1 1 1v3H3V9a1 1 0 0 1 1-1Zm12.155-5c-3 0-5.5 5-5.5 5h5.5a2.5 2.5 0 0 0 0-5Z"/></svg>
|
|
109
96
|
<a href="#">
|
|
@@ -115,4 +102,4 @@ Use this example to show a highlighted link inside a card component.
|
|
|
115
102
|
<svg class="w-4 h-4 ms-2 rtl:rotate-[270deg]" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 14v4.833A1.166 1.166 0 0 1 16.833 20H5.167A1.167 1.167 0 0 1 4 18.833V7.167A1.166 1.166 0 0 1 5.167 6h4.618m4.447-2H20v5.768m-7.889 2.121 7.778-7.778"/></svg>
|
|
116
103
|
</a>
|
|
117
104
|
</div>
|
|
118
|
-
|
|
105
|
+
```
|
package/data/typography/lists.md
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: docs
|
|
3
|
-
title: Tailwind CSS Lists - Flowbite
|
|
4
|
-
description: Use the list component to show an unordered or ordered list of items based on multiple styles, layouts, and variants built with Tailwind CSS and Flowbite
|
|
5
|
-
group: typography
|
|
6
|
-
toc: true
|
|
7
|
-
|
|
8
|
-
previous: Images
|
|
9
|
-
previousLink: typography/images/
|
|
10
|
-
next: Links
|
|
11
|
-
nextLink: typography/links/
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
Get started with a collection of list components built with Tailwind CSS for ordered and unordered lists with bullets, numbers, or icons and other styles and layouts to show a list of items inside an article or throughout your web page.
|
|
15
2
|
|
|
16
3
|
## Unordered list
|
|
17
4
|
|
|
18
5
|
Use this example to create a default unordered list of items using the `list-disc` class.
|
|
19
6
|
|
|
20
|
-
|
|
7
|
+
```html
|
|
21
8
|
<h2 class="mb-2 text-lg font-medium text-heading">Password requirements:</h2>
|
|
22
9
|
<ul class="max-w-md space-y-1 text-body list-disc list-inside">
|
|
23
10
|
<li>
|
|
@@ -30,13 +17,13 @@ Use this example to create a default unordered list of items using the `list-dis
|
|
|
30
17
|
Inclusion of at least one special character, e.g., ! @ # ?
|
|
31
18
|
</li>
|
|
32
19
|
</ul>
|
|
33
|
-
|
|
20
|
+
```
|
|
34
21
|
|
|
35
22
|
### Icons
|
|
36
23
|
|
|
37
24
|
This example can be used to apply custom icons instead of the default bullets for the list items.
|
|
38
25
|
|
|
39
|
-
|
|
26
|
+
```html
|
|
40
27
|
<h2 class="mb-2 text-lg font-medium text-heading">Password requirements:</h2>
|
|
41
28
|
<ul class="max-w-md space-y-1 text-body list-inside">
|
|
42
29
|
<li class="flex items-center">
|
|
@@ -52,13 +39,13 @@ This example can be used to apply custom icons instead of the default bullets fo
|
|
|
52
39
|
At least one special character, e.g., ! @ # ?
|
|
53
40
|
</li>
|
|
54
41
|
</ul>
|
|
55
|
-
|
|
42
|
+
```
|
|
56
43
|
|
|
57
44
|
### Nested
|
|
58
45
|
|
|
59
46
|
Use this example to nested another list of items inside the parent list element.
|
|
60
47
|
|
|
61
|
-
|
|
48
|
+
```html
|
|
62
49
|
<ul class="space-y-4 text-body list-disc list-inside">
|
|
63
50
|
<li>
|
|
64
51
|
List item one
|
|
@@ -85,13 +72,13 @@ Use this example to nested another list of items inside the parent list element.
|
|
|
85
72
|
</ul>
|
|
86
73
|
</li>
|
|
87
74
|
</ul>
|
|
88
|
-
|
|
75
|
+
```
|
|
89
76
|
|
|
90
77
|
### Unstyled
|
|
91
78
|
|
|
92
79
|
Use the `list-none` class to disable the list style bullets or numbers.
|
|
93
80
|
|
|
94
|
-
|
|
81
|
+
```html
|
|
95
82
|
<h2 class="mb-3 text-lg font-medium text-heading">Password requirements:</h2>
|
|
96
83
|
<ul class="max-w-md space-y-2 text-body list-none list-inside">
|
|
97
84
|
<li>
|
|
@@ -104,13 +91,13 @@ Use the `list-none` class to disable the list style bullets or numbers.
|
|
|
104
91
|
Inclusion of at least one special character, e.g., ! @ # ?
|
|
105
92
|
</li>
|
|
106
93
|
</ul>
|
|
107
|
-
|
|
94
|
+
```
|
|
108
95
|
|
|
109
96
|
## Ordered list
|
|
110
97
|
|
|
111
98
|
Use the `<ol>` tag to create an ordered list of items with numbers.
|
|
112
99
|
|
|
113
|
-
|
|
100
|
+
```html
|
|
114
101
|
<h2 class="mb-3 text-lg font-medium text-heading">Top students:</h2>
|
|
115
102
|
<ol class="max-w-md space-y-2 text-body list-decimal list-inside">
|
|
116
103
|
<li>
|
|
@@ -123,13 +110,13 @@ Use the `<ol>` tag to create an ordered list of items with numbers.
|
|
|
123
110
|
<span class="font-medium text-heading">Leslie Livingston</span> with <span class="font-medium text-heading">57</span> points
|
|
124
111
|
</li>
|
|
125
112
|
</ol>
|
|
126
|
-
|
|
113
|
+
```
|
|
127
114
|
|
|
128
115
|
### Nested
|
|
129
116
|
|
|
130
117
|
This example can be used to nest multiple lists into each other.
|
|
131
118
|
|
|
132
|
-
|
|
119
|
+
```html
|
|
133
120
|
<ol class="space-y-4 text-body list-decimal list-inside">
|
|
134
121
|
<li>
|
|
135
122
|
List item one
|
|
@@ -156,13 +143,13 @@ This example can be used to nest multiple lists into each other.
|
|
|
156
143
|
</ul>
|
|
157
144
|
</li>
|
|
158
145
|
</ol>
|
|
159
|
-
|
|
146
|
+
```
|
|
160
147
|
|
|
161
148
|
## Description list
|
|
162
149
|
|
|
163
150
|
Create a description list by using the `<dl>` tag and set the term and name with the following example.
|
|
164
151
|
|
|
165
|
-
|
|
152
|
+
```html
|
|
166
153
|
<dl class="max-w-md text-heading divide-y divide-default">
|
|
167
154
|
<div class="flex flex-col pb-3">
|
|
168
155
|
<dt class="mb-1 text-body">Email address</dt>
|
|
@@ -177,13 +164,13 @@ Create a description list by using the `<dl>` tag and set the term and name with
|
|
|
177
164
|
<dd class="text-lg font-medium">+00 123 456 789 / +12 345 678</dd>
|
|
178
165
|
</div>
|
|
179
166
|
</dl>
|
|
180
|
-
|
|
167
|
+
```
|
|
181
168
|
|
|
182
169
|
## List with icons
|
|
183
170
|
|
|
184
171
|
Use this example to create a list of items with [custom SVG icons](https://flowbite.com/icons/) instead of the default bullets.
|
|
185
172
|
|
|
186
|
-
|
|
173
|
+
```html
|
|
187
174
|
<ul class="space-y-4 text-left text-body">
|
|
188
175
|
<li class="flex items-center space-x-3 rtl:space-x-reverse">
|
|
189
176
|
<svg class="w-4 h-4 text-fg-success shrink-0 me-1.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.5 11.5 11 14l4-4m6 2a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
|
|
@@ -206,13 +193,13 @@ Use this example to create a list of items with [custom SVG icons](https://flowb
|
|
|
206
193
|
<span>Free updates: <span class="font-medium text-heading">6 months</span></span>
|
|
207
194
|
</li>
|
|
208
195
|
</ul>
|
|
209
|
-
|
|
196
|
+
```
|
|
210
197
|
|
|
211
198
|
## Advanced layout
|
|
212
199
|
|
|
213
200
|
This example can be used to show more details for each list item such as the user's name, email and profile picture.
|
|
214
201
|
|
|
215
|
-
|
|
202
|
+
```html
|
|
216
203
|
<ul class="max-w-md divide-y divide-default">
|
|
217
204
|
<li class="pb-3 sm:pb-4">
|
|
218
205
|
<div class="flex items-center space-x-4 rtl:space-x-reverse">
|
|
@@ -305,13 +292,13 @@ This example can be used to show more details for each list item such as the use
|
|
|
305
292
|
</div>
|
|
306
293
|
</li>
|
|
307
294
|
</ul>
|
|
308
|
-
|
|
295
|
+
```
|
|
309
296
|
|
|
310
297
|
## Features list card
|
|
311
298
|
|
|
312
299
|
Use this example to show a list of features inside a card component.
|
|
313
300
|
|
|
314
|
-
|
|
301
|
+
```html
|
|
315
302
|
|
|
316
303
|
<div class="w-full max-w-sm p-6 bg-neutral-primary-soft border border-default rounded-base shadow-xs mx-auto">
|
|
317
304
|
<h5 class="mb-4 text-xl font-medium text-body">Standard plan</h5>
|
|
@@ -352,13 +339,13 @@ Use this example to show a list of features inside a card component.
|
|
|
352
339
|
<button type="button" class="w-full text-white bg-brand hover:bg-brand-strong box-border border border-transparent 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">Choose plan</button>
|
|
353
340
|
</div>
|
|
354
341
|
|
|
355
|
-
|
|
342
|
+
```
|
|
356
343
|
|
|
357
344
|
## Horizontal list
|
|
358
345
|
|
|
359
346
|
Use this example to create a horizontally aligned list of items.
|
|
360
347
|
|
|
361
|
-
|
|
348
|
+
```html
|
|
362
349
|
<ul class="flex flex-wrap items-center justify-center text-heading">
|
|
363
350
|
<li>
|
|
364
351
|
<a href="#" class="me-4 hover:underline md:me-6 ">About</a>
|
|
@@ -382,6 +369,6 @@ Use this example to create a horizontally aligned list of items.
|
|
|
382
369
|
<a href="#" class="me-4 hover:underline md:me-6">Contact</a>
|
|
383
370
|
</li>
|
|
384
371
|
</ul>
|
|
385
|
-
|
|
372
|
+
```
|
|
386
373
|
|
|
387
374
|
|