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.
Files changed (72) hide show
  1. package/README.md +49 -74
  2. package/build/index.js +20 -36
  3. package/data/components/accordion.md +39 -53
  4. package/data/components/alerts.md +27 -44
  5. package/data/components/avatar.md +20 -33
  6. package/data/components/badge.md +34 -47
  7. package/data/components/banner.md +10 -29
  8. package/data/components/bottom-navigation.md +16 -29
  9. package/data/components/breadcrumb.md +12 -25
  10. package/data/components/button-group.md +26 -39
  11. package/data/components/buttons.md +41 -67
  12. package/data/components/card.md +34 -47
  13. package/data/components/carousel.md +25 -39
  14. package/data/components/chat-bubble.md +36 -50
  15. package/data/components/clipboard.md +256 -252
  16. package/data/components/datepicker.md +56 -70
  17. package/data/components/device-mockups.md +16 -29
  18. package/data/components/drawer.md +42 -56
  19. package/data/components/dropdowns.md +66 -80
  20. package/data/components/footer.md +16 -29
  21. package/data/components/forms.md +32 -50
  22. package/data/components/gallery.md +16 -33
  23. package/data/components/indicators.md +18 -31
  24. package/data/components/jumbotron.md +12 -25
  25. package/data/components/kbd.md +14 -27
  26. package/data/components/list-group.md +14 -27
  27. package/data/components/mega-menu.md +10 -24
  28. package/data/components/modal.md +37 -51
  29. package/data/components/navbar.md +41 -55
  30. package/data/components/pagination.md +22 -35
  31. package/data/components/popover.md +36 -51
  32. package/data/components/progress.md +10 -23
  33. package/data/components/qr-code.md +41 -133
  34. package/data/components/rating.md +16 -29
  35. package/data/components/sidebar.md +15 -30
  36. package/data/components/skeleton.md +16 -29
  37. package/data/components/speed-dial.md +40 -55
  38. package/data/components/spinner.md +14 -27
  39. package/data/components/stepper.md +14 -27
  40. package/data/components/tables.md +45 -64
  41. package/data/components/tabs.md +30 -45
  42. package/data/components/timeline.md +10 -23
  43. package/data/components/toast.md +25 -39
  44. package/data/components/tooltips.md +24 -39
  45. package/data/components/typography.md +22 -35
  46. package/data/components/video.md +14 -27
  47. package/data/forms/checkbox.md +27 -43
  48. package/data/forms/file-input.md +12 -26
  49. package/data/forms/floating-label.md +12 -25
  50. package/data/forms/input-field.md +17 -32
  51. package/data/forms/number-input.md +83 -93
  52. package/data/forms/phone-input.md +42 -54
  53. package/data/forms/radio.md +23 -39
  54. package/data/forms/range.md +12 -26
  55. package/data/forms/search-input.md +14 -31
  56. package/data/forms/select.md +15 -30
  57. package/data/forms/textarea.md +8 -21
  58. package/data/forms/timepicker.md +30 -42
  59. package/data/forms/toggle.md +18 -31
  60. package/data/plugins/charts.md +542 -526
  61. package/data/plugins/datatables.md +285 -286
  62. package/data/plugins/wysiwyg.md +658 -650
  63. package/data/quickstart.md +24 -24
  64. package/data/typography/blockquote.md +24 -37
  65. package/data/typography/headings.md +30 -43
  66. package/data/typography/hr.md +10 -23
  67. package/data/typography/images.md +32 -45
  68. package/data/typography/links.md +16 -29
  69. package/data/typography/lists.md +22 -35
  70. package/data/typography/paragraphs.md +30 -43
  71. package/data/typography/text.md +42 -55
  72. package/package.json +1 -1
@@ -1,16 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Footer - Flowbite
4
- description: Use the footer section at the bottom of every page to show valuable information to your users, such as sitemap links, a copyright notice, and a logo
5
- group: components
6
- toc: true
7
-
8
- previous: Dropdowns
9
- previousLink: components/dropdowns/
10
- next: Forms
11
- nextLink: components/forms/
12
- ---
13
-
14
1
  The footer is one of the most underestimated sections of a website being located at the very bottom of every page, however, it can be used as a way to try to convince users to stay on your website if they haven't found the information they've been looking for inside the main content area.
15
2
 
16
3
  Use these footer sections coded with the utility classes from Tailwind CSS and components from Flowbite to offer valuable information to your users such as the brand's logo, sitemap links, copyright notice, social media profiles, and more.
@@ -19,11 +6,11 @@ Use these footer sections coded with the utility classes from Tailwind CSS and c
19
6
 
20
7
  Use this footer component to show a copyright notice and some helpful website links.
21
8
 
22
- {{< example bodyClass="!p-0" github="components/footer.md" class="p-2" show_dark=true >}}
9
+ ```html
23
10
 
24
11
  <footer class="bg-neutral-primary-soft rounded-base shadow-xs border border-default m-4">
25
12
  <div class="w-full mx-auto max-w-screen-xl p-4 md:flex md:items-center md:justify-between">
26
- <span class="text-sm text-body sm:text-center">© 2023 <a href="{{< param homepage >}}/" class="hover:underline">Flowbite™</a>. All Rights Reserved.
13
+ <span class="text-sm text-body sm:text-center">© 2023 <a href="https://flowbite.com" class="hover:underline">Flowbite™</a>. All Rights Reserved.
27
14
  </span>
28
15
  <ul class="flex flex-wrap items-center mt-3 text-sm font-medium text-body sm:mt-0">
29
16
  <li>
@@ -41,13 +28,13 @@ Use this footer component to show a copyright notice and some helpful website li
41
28
  </ul>
42
29
  </div>
43
30
  </footer>
44
- {{< /example >}}
31
+ ```
45
32
 
46
33
  ## Footer with logo
47
34
 
48
35
  Use this component to show your brand's logo, a few website links and the copyright notice on a second row.
49
36
 
50
- {{< example bodyClass="!p-0" github="components/footer.md" class="p-2" show_dark=true >}}
37
+ ```html
51
38
 
52
39
  <footer class="bg-neutral-primary-soft rounded-base shadow-xs border border-default m-4">
53
40
  <div class="w-full max-w-screen-xl mx-auto p-4 md:py-8">
@@ -76,19 +63,19 @@ Use this component to show your brand's logo, a few website links and the copyri
76
63
  </div>
77
64
  </footer>
78
65
 
79
- {{< /example >}}
66
+ ```
80
67
 
81
68
  ## Social media icons
82
69
 
83
70
  This footer component can be used to show your brand's logo, multiple rows of website links, a copyright notice and social media profile icons including Twitter, Facebook, Instagram, and more.
84
71
 
85
- {{< example bodyClass="!p-0" github="components/footer.md" show_dark=true >}}
72
+ ```html
86
73
 
87
74
  <footer class="bg-neutral-primary-soft">
88
75
  <div class="mx-auto w-full max-w-screen-xl p-4 py-6 lg:py-8">
89
76
  <div class="md:flex md:justify-between">
90
77
  <div class="mb-6 md:mb-0">
91
- <a href="{{< param homepage >}}/" class="flex items-center">
78
+ <a href="https://flowbite.com" class="flex items-center">
92
79
  <img src="https://flowbite.com/docs/images/logo.svg" class="h-7 me-3" alt="FlowBite Logo" />
93
80
  <span class="text-heading self-center text-2xl font-semibold whitespace-nowrap">Flowbite</span>
94
81
  </a>
@@ -98,7 +85,7 @@ This footer component can be used to show your brand's logo, multiple rows of we
98
85
  <h2 class="mb-6 text-sm font-semibold text-heading uppercase">Resources</h2>
99
86
  <ul class="text-body font-medium">
100
87
  <li class="mb-4">
101
- <a href="{{< param homepage >}}/" class="hover:underline">Flowbite</a>
88
+ <a href="https://flowbite.com" class="hover:underline">Flowbite</a>
102
89
  </li>
103
90
  <li>
104
91
  <a href="https://tailwindcss.com/" class="hover:underline">Tailwind CSS</a>
@@ -131,7 +118,7 @@ This footer component can be used to show your brand's logo, multiple rows of we
131
118
  </div>
132
119
  <hr class="my-6 border-default sm:mx-auto lg:my-8" />
133
120
  <div class="sm:flex sm:items-center sm:justify-between">
134
- <span class="text-sm text-body sm:text-center">© 2023 <a href="{{< param homepage >}}/" class="hover:underline">Flowbite™</a>. All Rights Reserved.
121
+ <span class="text-sm text-body sm:text-center">© 2023 <a href="https://flowbite.com" class="hover:underline">Flowbite™</a>. All Rights Reserved.
135
122
  </span>
136
123
  <div class="flex mt-4 sm:justify-center sm:mt-0">
137
124
  <a href="#" class="text-body hover:text-heading">
@@ -158,13 +145,13 @@ This footer component can be used to show your brand's logo, multiple rows of we
158
145
  </div>
159
146
  </div>
160
147
  </footer>
161
- {{< /example >}}
148
+ ```
162
149
 
163
150
  ## Sitemap links
164
151
 
165
152
  If you have a website with many pages you can use this footer component to show a sitemap spanning the entire width of a row followed below by a copyright notice and social media icons.
166
153
 
167
- {{< example bodyClass="!p-0" github="components/footer.md" show_dark=true >}}
154
+ ```html
168
155
 
169
156
  <footer class="bg-neutral-primary">
170
157
  <div class="mx-auto w-full max-w-screen-xl">
@@ -236,7 +223,7 @@ If you have a website with many pages you can use this footer component to show
236
223
  </div>
237
224
  </div>
238
225
  <div class="px-4 py-6 bg-neutral-secondary-soft md:flex md:items-center md:justify-between">
239
- <span class="text-sm text-body sm:text-center">© 2023 <a href="{{< param homepage >}}/">Flowbite™</a>. All Rights Reserved.
226
+ <span class="text-sm text-body sm:text-center">© 2023 <a href="https://flowbite.com">Flowbite™</a>. All Rights Reserved.
240
227
  </span>
241
228
  <div class="flex mt-4 sm:justify-center md:mt-0 space-x-2 rtl:space-x-reverse">
242
229
  <a href="#" class="text-body hover:text-heading">
@@ -263,16 +250,16 @@ If you have a website with many pages you can use this footer component to show
263
250
  </div>
264
251
  </div>
265
252
  </footer>
266
- {{< /example >}}
253
+ ```
267
254
 
268
255
  ## Sticky footer
269
256
 
270
257
  Use this example to set create a sticky footer by using a fixed position to the bottom of the document page as the user scrolls up or down the main content area.
271
258
 
272
- {{< example bodyClass="!p-0" github="components/navbar.md" show_dark=true iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true >}}
259
+ ```html
273
260
 
274
261
  <footer class="fixed bottom-0 left-0 z-20 w-full p-4 bg-neutral-primary-soft border-t border-default shadow-sm md:flex md:items-center md:justify-between md:p-6">
275
- <span class="text-sm text-body sm:text-center">© 2023 <a href="{{< param homepage >}}/" class="hover:underline">Flowbite™</a>. All Rights Reserved.
262
+ <span class="text-sm text-body sm:text-center">© 2023 <a href="https://flowbite.com" class="hover:underline">Flowbite™</a>. All Rights Reserved.
276
263
  </span>
277
264
  <ul class="flex flex-wrap items-center mt-3 text-sm font-medium text-body sm:mt-0">
278
265
  <li>
@@ -289,7 +276,7 @@ Use this example to set create a sticky footer by using a fixed position to the
289
276
  </li>
290
277
  </ul>
291
278
  </footer>
292
- {{< /example >}}
279
+ ```
293
280
 
294
281
  ## More examples
295
282
 
@@ -1,24 +1,10 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Forms - Flowbite
4
- description: Use the Tailwind CSS form and input elements such as checkboxes, radios, textarea, text inputs to collect information from users with Flowbite
5
- group: components
6
- toc: true
7
- requires_js: true
8
-
9
- previous: Footer
10
- previousLink: components/footer/
11
- next: Gallery
12
- nextLink: components/gallery/
13
- ---
14
-
15
1
  Get started with these custom Tailwind CSS form components to gather information from your users using input text elements, checkboxes, radios, textareas, selects, file uploads, toggle switches, and more.
16
2
 
17
3
  ## Default form
18
4
 
19
5
  This is an example of a form component including an email, password, checkbox, and submit button that you can use as a starting point for any form element in your website using Flowbite and Tailwind CSS.
20
6
 
21
- {{< example github="components/forms.md" show_dark=true >}}
7
+ ```html
22
8
  <form class="max-w-sm mx-auto">
23
9
  <div class="mb-5">
24
10
  <label for="email" class="block mb-2.5 text-sm font-medium text-heading">Your email</label>
@@ -34,17 +20,15 @@ This is an example of a form component including an email, password, checkbox, a
34
20
  </label>
35
21
  <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">Submit</button>
36
22
  </form>
37
- {{< /example >}}
23
+ ```
24
+
38
25
 
39
- <div class="mt-8 -mb-5">
40
- {{< requires_tw3 >}}
41
- </div>
42
26
 
43
27
  ## Floating labels
44
28
 
45
29
  Use these form elements inspired by material design from Google to adjust the `label` tag as the visual placeholder for the input elements using the `peer-placeholder-shown` and `peer-focus` utility classes. These components require Tailwind CSS v3.x and above.
46
30
 
47
- {{< example github="components/forms.md" show_dark=true >}}
31
+ ```html
48
32
 
49
33
  <form class="max-w-md mx-auto">
50
34
  <div class="relative z-0 w-full mb-5 group">
@@ -81,13 +65,13 @@ Use these form elements inspired by material design from Google to adjust the `l
81
65
  </div>
82
66
  <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">Submit</button>
83
67
  </form>
84
- {{< /example >}}
68
+ ```
85
69
 
86
70
  ## Input Sizes
87
71
 
88
72
  Use the following utility classes to create three different sizing options (large, base, and small) for your form input elements.
89
73
 
90
- {{< example github="components/forms.md" show_dark=true >}}
74
+ ```html
91
75
  <form class="max-w-sm mx-auto space-y-4">
92
76
  <div>
93
77
  <label for="visitors" class="block mb-2.5 text-sm font-medium text-heading">Small Input</label>
@@ -106,24 +90,24 @@ Use the following utility classes to create three different sizing options (larg
106
90
  <input type="text" id="visitors" class="bg-neutral-secondary-medium border border-default-medium text-heading text-base rounded-base focus:ring-brand focus:border-brand block w-full px-4 py-3.5 shadow-xs placeholder:text-body" placeholder="" required />
107
91
  </div>
108
92
  </form>
109
- {{< /example >}}
93
+ ```
110
94
 
111
95
  ## Disabled inputs
112
96
 
113
97
  Use the following utility classes to indicate a disabled form input item.
114
98
 
115
- {{< example github="components/forms.md" show_dark=true >}}
99
+ ```html
116
100
  <form class="max-w-sm mx-auto space-y-4">
117
101
  <input type="text" id="disabled-input" aria-label="disabled input" class="bg-neutral-secondary-medium border border-default-medium text-fg-disabled text-sm rounded-base focus:ring-brand focus:border-brand block w-full px-3 py-2.5 shadow-xs placeholder:text-body" value="Disabled input" disabled>
118
102
  <input type="text" id="disabled-input-2" aria-label="disabled input 2" class="bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand block w-full px-3 py-2.5 shadow-xs placeholder:text-body" value="Disabled readonly input" disabled readonly>
119
103
  </form>
120
- {{< /example >}}
104
+ ```
121
105
 
122
106
  ## Shadow inputs
123
107
 
124
108
  Alternatively, you can decide to apply a shadow styling using the `shadow-xs` class to any of your form input elements.
125
109
 
126
- {{< example github="components/forms.md" show_dark=true >}}
110
+ ```html
127
111
 
128
112
  <form class="max-w-sm mx-auto">
129
113
  <div class="mb-5">
@@ -143,26 +127,26 @@ Alternatively, you can decide to apply a shadow styling using the `shadow-xs` cl
143
127
  <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">Submit</button>
144
128
  </form>
145
129
 
146
- {{< /example >}}
130
+ ```
147
131
 
148
132
  ## Helper text
149
133
 
150
134
  Use the following markup to also add a helper text below your form input item. Usually used for newsletter signup elements.
151
135
 
152
- {{< example github="components/forms.md" show_dark=true >}}
136
+ ```html
153
137
  <form class="max-w-sm mx-auto">
154
138
  <label for="email" class="block mb-2.5 text-sm font-medium text-heading">Your email</label>
155
139
  <input type="email" id="email" aria-describedby="helper-text-explanation" class="bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand block w-full px-3 py-2.5 shadow-xs placeholder:text-body" placeholder="name@flowbite.com">
156
140
 
157
141
  <p id="helper-text-explanation" class="mt-2.5 text-sm text-body">Read our <a href="#" class="font-medium text-fg-brand hover:underline ">Privacy Policy</a>.</p>
158
142
  </form>
159
- {{< /example >}}
143
+ ```
160
144
 
161
145
  ## Input element with icon
162
146
 
163
147
  Use the following Tailwind utility classes and [SVG icon](https://flowbite.com/icons/) to add an icon inside input form elements.
164
148
 
165
- {{< example github="components/forms.md" show_dark=true >}}
149
+ ```html
166
150
  <form class="max-w-sm mx-auto">
167
151
  <label for="input-group-1" class="block mb-2.5 text-sm font-medium text-heading">Your Email</label>
168
152
  <div class="relative">
@@ -172,13 +156,13 @@ Use the following Tailwind utility classes and [SVG icon](https://flowbite.com/i
172
156
  <input type="text" id="input-group-1" class="block w-full ps-9 pe-3 py-2.5 bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand shadow-xs placeholder:text-body" placeholder="name@flowbite.com">
173
157
  </div>
174
158
  </form>
175
- {{< /example >}}
159
+ ```
176
160
 
177
161
  ## Input element with addon
178
162
 
179
163
  Use this example to add a SVG icon or special character with an addon style to the input element.
180
164
 
181
- {{< example github="components/forms.md" show_dark=true >}}
165
+ ```html
182
166
  <form class="max-w-sm mx-auto">
183
167
  <label for="website-admin" class="block mb-2.5 text-sm font-medium text-heading">Username</label>
184
168
  <div class="flex shadow-xs rounded-base">
@@ -188,13 +172,13 @@ Use this example to add a SVG icon or special character with an addon style to t
188
172
  <input type="text" id="website-admin" class="rounded-none rounded-e-base block w-full px-3 py-2.5 bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand placeholder:text-body" placeholder="elonmusk">
189
173
  </div>
190
174
  </form>
191
- {{< /example >}}
175
+ ```
192
176
 
193
177
  ## Form validation
194
178
 
195
179
  Use the following two success and error styles when validation your forms.
196
180
 
197
- {{< example github="components/forms.md" show_dark=true >}}
181
+ ```html
198
182
  <form class="max-w-sm mx-auto">
199
183
  <div class="mb-6">
200
184
  <label for="success" class="block mb-2.5 text-sm font-medium text-fg-success-strong">Your name</label>
@@ -207,24 +191,24 @@ Use the following two success and error styles when validation your forms.
207
191
  <p class="mt-2.5 text-sm text-fg-danger-strong"><span class="font-medium">Oh, snapp!</span> Some error message.</p>
208
192
  </div>
209
193
  </form>
210
- {{< /example >}}
194
+ ```
211
195
 
212
196
  ## Textarea
213
197
 
214
198
  Use the following code to create a textarea form element.
215
199
 
216
- {{< example github="components/forms.md" show_dark=true >}}
200
+ ```html
217
201
  <form class="max-w-sm mx-auto">
218
202
  <label for="message" class="block mb-2.5 text-sm font-medium text-heading">Your message</label>
219
203
  <textarea id="message" rows="4" class="bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand block w-full p-3.5 shadow-xs placeholder:text-body" placeholder="Write your thoughts here..."></textarea>
220
204
  </form>
221
- {{< /example >}}
205
+ ```
222
206
 
223
207
  ## Select input
224
208
 
225
209
  Use the following select input element to show selectable list of items.
226
210
 
227
- {{< example github="components/forms.md" show_dark=true >}}
211
+ ```html
228
212
  <form class="max-w-sm mx-auto">
229
213
  <label for="countries" class="block mb-2.5 text-sm font-medium text-heading">Select an option</label>
230
214
  <select id="countries" class="block w-full px-3 py-2.5 bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand shadow-xs placeholder:text-body">
@@ -235,13 +219,13 @@ Use the following select input element to show selectable list of items.
235
219
  <option value="DE">Germany</option>
236
220
  </select>
237
221
  </form>
238
- {{< /example >}}
222
+ ```
239
223
 
240
224
  ## Checkbox
241
225
 
242
226
  The code below can be used to create a fieldset of checkbox elements inside a form. We also created a checkbox variant with extra description and one in a disabled form.
243
227
 
244
- {{< example github="components/forms.md" show_dark=true >}}
228
+ ```html
245
229
 
246
230
  <fieldset>
247
231
  <legend class="sr-only">Checkbox variants</legend>
@@ -276,13 +260,13 @@ The code below can be used to create a fieldset of checkbox elements inside a fo
276
260
  <label for="international-shipping-disabled" class="ms-2 text-sm font-medium text-fg-disabled select-none">Eligible for international shipping (disabled)</label>
277
261
  </div>
278
262
  </fieldset>
279
- {{< /example >}}
263
+ ```
280
264
 
281
265
  ## Radio buttons
282
266
 
283
267
  Group a series of buttons together on a single line or stack them in a vertical column.
284
268
 
285
- {{< example github="components/forms.md" show_dark=true >}}
269
+ ```html
286
270
 
287
271
  <fieldset>
288
272
  <legend class="sr-only">Countries</legend>
@@ -322,28 +306,26 @@ Group a series of buttons together on a single line or stack them in a vertical
322
306
  </label>
323
307
  </div>
324
308
  </fieldset>
325
- {{< /example >}}
309
+ ```
310
+
326
311
 
327
- <div class="mt-8 -mb-5">
328
- {{< requires_js >}}
329
- </div>
330
312
 
331
313
  ## File upload
332
314
 
333
315
  Use the following Tailwind CSS file upload element to receive any type of file from users.
334
316
 
335
- {{< example github="components/forms.md" show_dark=true >}}
317
+ ```html
336
318
  <form class="max-w-lg mx-auto">
337
319
  <label class="block mb-2.5 text-sm font-medium text-heading" for="file_input">Upload file</label>
338
320
  <input class="cursor-pointer bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand block w-full shadow-xs placeholder:text-body" id="file_input" type="file">
339
321
  </form>
340
- {{< /example >}}
322
+ ```
341
323
 
342
324
  ## Toggle Switch
343
325
 
344
326
  Use the following toggle switch component to ask for a yes or no type of input from your users without the use of JavaScript.
345
327
 
346
- {{< example class="flex flex-col flex-wrap space-y-4" github="components/forms.md" show_dark=true >}}
328
+ ```html
347
329
  <label class="inline-flex items-center cursor-pointer">
348
330
  <input type="checkbox" value="" class="sr-only peer">
349
331
  <div class="relative w-9 h-5 bg-neutral-quaternary peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-brand-soft dark:peer-focus:ring-brand-soft rounded-full peer peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-buffer after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-brand"></div>
@@ -355,7 +337,7 @@ Use the following toggle switch component to ask for a yes or no type of input f
355
337
  <div class="relative w-9 h-5 bg-neutral-quaternary peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-brand-soft dark:peer-focus:ring-brand-soft rounded-full peer peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-buffer after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-brand"></div>
356
338
  <span class="ms-3 text-sm font-medium text-heading select-none">Checked toggle</span>
357
339
  </label>
358
- {{< /example >}}
340
+ ```
359
341
 
360
342
  ## More examples
361
343
 
@@ -1,16 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Gallery (Masonry) - Flowbite
4
- description: Use the image gallery component based on a masonry grid layout using flex and grid classes from Tailwind CSS to show multiple pictures based on various styles
5
- group: components
6
- toc: true
7
-
8
- previous: Forms
9
- previousLink: components/forms/
10
- next: Indicators
11
- nextLink: components/indicators/
12
- ---
13
-
14
1
  The gallery component can be used to show multiple images inside a masonry grid layout styles with the utility-first classes from Tailwind CSS to show a collection of pictures to your users based on various layouts, styles, sizes, and colors.
15
2
 
16
3
  This component is recommended for usage within marketing UI interfaces and website sections when you want to show pictures of your team members, office pictures, or even case study images.
@@ -19,7 +6,7 @@ This component is recommended for usage within marketing UI interfaces and websi
19
6
 
20
7
  Use this component to show a collection of images inside a gallery with three pictures on a row.
21
8
 
22
- {{< example class="flex justify-center" github="components/gallery.md" show_dark=true >}}
9
+ ```html
23
10
 
24
11
  <div class="grid grid-cols-2 md:grid-cols-3 gap-4">
25
12
  <div>
@@ -59,13 +46,13 @@ Use this component to show a collection of images inside a gallery with three pi
59
46
  <img class="h-auto max-w-full rounded-base" src="https://flowbite.s3.amazonaws.com/docs/gallery/square/image-11.jpg" alt="">
60
47
  </div>
61
48
  </div>
62
- {{< /example >}}
49
+ ```
63
50
 
64
51
  ## Masonry grid
65
52
 
66
53
  This example can be used to show the images inside a masonry grid layouts with four columns.
67
54
 
68
- {{< example class="flex justify-center" github="components/gallery.md" show_dark=true >}}
55
+ ```html
69
56
 
70
57
  <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
71
58
  <div class="grid gap-4">
@@ -113,13 +100,13 @@ This example can be used to show the images inside a masonry grid layouts with f
113
100
  </div>
114
101
  </div>
115
102
  </div>
116
- {{< /example >}}
103
+ ```
117
104
 
118
105
  ## Featured image
119
106
 
120
107
  This example can be used to feature the most important image and show a row of five pictures below.
121
108
 
122
- {{< example class="flex justify-center" github="components/gallery.md" show_dark=true >}}
109
+ ```html
123
110
 
124
111
  <div class="grid gap-4">
125
112
  <div>
@@ -143,13 +130,13 @@ This example can be used to feature the most important image and show a row of f
143
130
  </div>
144
131
  </div>
145
132
  </div>
146
- {{< /example >}}
133
+ ```
147
134
 
148
135
  ## Quad gallery
149
136
 
150
137
  Use this example to show four larger images with two items on a row.
151
138
 
152
- {{< example class="flex justify-center" github="components/gallery.md" show_dark=true >}}
139
+ ```html
153
140
 
154
141
  <div class="grid grid-cols-2 gap-2">
155
142
  <div>
@@ -165,17 +152,15 @@ Use this example to show four larger images with two items on a row.
165
152
  <img class="h-auto max-w-full rounded-base" src="https://flowbite.s3.amazonaws.com/docs/gallery/square/image-4.jpg" alt="">
166
153
  </div>
167
154
  </div>
168
- {{< /example >}}
155
+ ```
156
+
169
157
 
170
- <div class="mt-8 -mb-5">
171
- {{< requires_js >}}
172
- </div>
173
158
 
174
159
  ## Gallery with slider
175
160
 
176
161
  This example uses the [carousel slider](https://flowbite.com/docs/components/carousel/) functionality to show multiple images inside a slider gallery.
177
162
 
178
- {{< example class="flex justify-center" github="components/gallery.md" show_dark=true >}}
163
+ ```html
179
164
 
180
165
  <div id="gallery" class="relative w-full" data-carousel="slide">
181
166
  <!-- Carousel wrapper -->
@@ -215,17 +200,15 @@ This example uses the [carousel slider](https://flowbite.com/docs/components/car
215
200
  </span>
216
201
  </button>
217
202
  </div>
218
- {{< /example >}}
203
+ ```
204
+
219
205
 
220
- <div class="mt-8 -mb-5">
221
- {{< requires_js >}}
222
- </div>
223
206
 
224
207
  ## Custom slider controls
225
208
 
226
209
  This example uses an alternative style for the control button for the carousel slider component.
227
210
 
228
- {{< example class="flex justify-center" github="components/gallery.md" show_dark=true >}}
211
+ ```html
229
212
 
230
213
  <div id="custom-controls-gallery" class="relative w-full" data-carousel="slide">
231
214
  <!-- Carousel wrapper -->
@@ -266,13 +249,13 @@ This example uses an alternative style for the control button for the carousel s
266
249
  </button>
267
250
  </div>
268
251
  </div>
269
- {{< /example >}}
252
+ ```
270
253
 
271
254
  ## Gallery with tag filters
272
255
 
273
256
  Use this example to show a list of tags and filter the images below based on the activately selected tag.
274
257
 
275
- {{< example bodyClass="mt-0" github="components/gallery.md" show_dark=true >}}
258
+ ```html
276
259
 
277
260
  <div class="flex items-center justify-center py-4 md:py-8 flex-wrap">
278
261
  <button type="button" class="text-fg-brand border border-brand bg-neutral-primary focus:ring-4 focus:outline-none focus:ring-neutral-tertiary rounded-base text-base font-medium px-5 py-2.5 text-center me-3 mb-3">All categories</button>
@@ -319,4 +302,4 @@ Use this example to show a list of tags and filter the images below based on the
319
302
  <img class="h-auto max-w-full rounded-base" src="https://flowbite.s3.amazonaws.com/docs/gallery/square/image-11.jpg" alt="">
320
303
  </div>
321
304
  </div>
322
- {{< /example >}}
305
+ ```