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,34 +1,21 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Cards - Flowbite
4
- description: Get started with a large variety of Tailwind CSS card examples for your web project
5
- group: components
6
- toc: true
7
-
8
- previous: Button group
9
- previousLink: components/button-group/
10
- next: Carousel
11
- nextLink: components/carousel/
12
- ---
13
-
14
1
  Use these responsive card components to show data entries and information to your users in multiple forms and contexts such as for your blog, application, user profiles, and more.
15
2
 
16
3
  ## Default card
17
4
 
18
5
  Use the following simple card component with a title and description.
19
6
 
20
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
7
+ ```html
21
8
  <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">
22
9
  <h5 class="mb-3 text-2xl font-semibold tracking-tight text-heading leading-8">Noteworthy technology acquisitions 2021</h5>
23
10
  <p class="text-body">Here are the biggest technology acquisitions of 2025 so far, in reverse chronological order.</p>
24
11
  </a>
25
- {{< /example >}}
12
+ ```
26
13
 
27
14
  ## Card with button
28
15
 
29
16
  Use the following example of a card element if you also want to have an action button.
30
17
 
31
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
18
+ ```html
32
19
 
33
20
  <div class="bg-neutral-primary-soft block max-w-sm p-6 border border-default rounded-base shadow-xs">
34
21
  <h5 class="mb-3 text-2xl font-semibold tracking-tight text-heading leading-8">Noteworthy technology acquisitions 2021</h5>
@@ -38,13 +25,13 @@ Use the following example of a card element if you also want to have an action b
38
25
  <svg class="w-4 h-4 ms-1.5 rtl:rotate-180 -me-0.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="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
39
26
  </a>
40
27
  </div>
41
- {{< /example >}}
28
+ ```
42
29
 
43
30
  ## Card with link
44
31
 
45
32
  This example can be used to show a CTA as a link instead of a button inside the card.
46
33
 
47
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
34
+ ```html
48
35
 
49
36
  <div class="bg-neutral-primary-soft block max-w-sm p-6 border border-default rounded-base shadow-xs">
50
37
  <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>
@@ -57,13 +44,13 @@ This example can be used to show a CTA as a link instead of a button inside the
57
44
  <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>
58
45
  </a>
59
46
  </div>
60
- {{< /example >}}
47
+ ```
61
48
 
62
49
  ## Card with image
63
50
 
64
51
  You can use the following example of a card element with an image for blog posts, user cards, and many more.
65
52
 
66
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
53
+ ```html
67
54
 
68
55
  <div class="bg-neutral-primary-soft block max-w-sm border border-default rounded-base shadow-xs">
69
56
  <a href="#">
@@ -83,13 +70,13 @@ You can use the following example of a card element with an image for blog posts
83
70
  </a>
84
71
  </div>
85
72
  </div>
86
- {{< /example >}}
73
+ ```
87
74
 
88
75
  ## Card with description
89
76
 
90
77
  Use this alternative styled card with an image for features, blog posts, and more.
91
78
 
92
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
79
+ ```html
93
80
 
94
81
  <div class="bg-neutral-primary-soft block max-w-sm p-6 border border-default rounded-base shadow-xs">
95
82
  <a href="#">
@@ -104,13 +91,13 @@ Use this alternative styled card with an image for features, blog posts, and mor
104
91
  <svg class="w-4 h-4 ms-1.5 rtl:rotate-180 -me-0.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="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
105
92
  </a>
106
93
  </div>
107
- {{< /example >}}
94
+ ```
108
95
 
109
96
  ## Horizontal card
110
97
 
111
98
  If you want to spice up your cards you can use the following card which has its child elements aligned horizontally.
112
99
 
113
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
100
+ ```html
114
101
  <a href="#" class="flex flex-col items-center bg-neutral-primary-soft p-6 border border-default rounded-base shadow-xs md:flex-row md:max-w-xl md:flex-row md:max-w-xl">
115
102
  <img class="object-cover w-full rounded-base h-64 md:h-auto md:w-48 mb-4 md:mb-0" src="/docs/images/blog/image-4.jpg" alt="">
116
103
  <div class="flex flex-col justify-between md:p-4 leading-normal">
@@ -124,13 +111,13 @@ If you want to spice up your cards you can use the following card which has its
124
111
  </div>
125
112
  </div>
126
113
  </a>
127
- {{< /example >}}
114
+ ```
128
115
 
129
116
  ## User profile card
130
117
 
131
118
  Use this user profile card example if you want to show a dropdown menu and buttons to enable multiple actions from your user.
132
119
 
133
- {{< example class="flex flex-wrap justify-center" github="components/card.md" show_dark=true >}}
120
+ ```html
134
121
 
135
122
  <div class="relative bg-neutral-primary-soft max-w-xs w-full p-6 border border-default rounded-base shadow-xs">
136
123
  <button id="dropdownButton" data-dropdown-toggle="dropdown" class="absolute top-2 end-2 text-body hover:text-heading bg-neutral-primary-soft box-border border border-transparent hover:bg-neutral-tertiary focus:ring-4 focus:ring-neutral-tertiary rounded-base p-1.5 focus:outline-none" type="button">
@@ -166,13 +153,13 @@ Use this user profile card example if you want to show a dropdown menu and butto
166
153
  </div>
167
154
  </div>
168
155
  </div>
169
- {{< /example >}}
156
+ ```
170
157
 
171
158
  ## Card with form inputs
172
159
 
173
160
  Use this card example where you can add form input elements that can be used for authentication actions or any other context where you need to receive information from your users.
174
161
 
175
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
162
+ ```html
176
163
 
177
164
  <div class="w-full max-w-sm bg-neutral-primary-soft p-6 border border-default rounded-base shadow-xs">
178
165
  <form action="#">
@@ -196,13 +183,13 @@ Use this card example where you can add form input elements that can be used for
196
183
  <div class="text-sm font-medium text-body">Not registered? <a href="#" class="text-fg-brand hover:underline">Create account</a></div>
197
184
  </form>
198
185
  </div>
199
- {{< /example >}}
186
+ ```
200
187
 
201
188
  ## E-commerce card
202
189
 
203
190
  Use this card for your e-commerce websites and show information about the products and enable actions such as adding a review and adding the product to the cart.
204
191
 
205
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
192
+ ```html
206
193
 
207
194
  <div class="w-full max-w-sm bg-neutral-primary-soft p-6 border border-default rounded-base shadow-xs">
208
195
  <a href="#">
@@ -231,13 +218,13 @@ Use this card for your e-commerce websites and show information about the produc
231
218
  </div>
232
219
  </div>
233
220
  </div>
234
- {{< /example >}}
221
+ ```
235
222
 
236
223
  ## Call to action card
237
224
 
238
225
  Use this CTA card example to encourage your users to visit a certain page such as downloading the iOS or Android application for your project.
239
226
 
240
- {{< example github="components/card.md" show_dark=true >}}
227
+ ```html
241
228
 
242
229
  <div class="w-full text-center bg-neutral-primary-soft p-6 border border-default rounded-base shadow-xs">
243
230
  <h5 class="mb-3 text-2xl tracking-tight font-semibold text-heading">Work fast from anywhere</h5>
@@ -259,13 +246,13 @@ Use this CTA card example to encourage your users to visit a certain page such a
259
246
  </a>
260
247
  </div>
261
248
  </div>
262
- {{< /example >}}
249
+ ```
263
250
 
264
251
  ## Card with nav tabs
265
252
 
266
253
  Use this example of a card component with navigation tabs that can change the content inside the card based on which one is currently active.
267
254
 
268
- {{< example github="components/card.md" show_dark=true >}}
255
+ ```html
269
256
 
270
257
  <div class="w-full bg-neutral-primary border border-default rounded-base shadow-xs">
271
258
  <ul class="flex flex-wrap text-sm font-medium text-center text-body bg-neutral-secondary-soft border-b border-default rounded-t-base" id="defaultTab" data-tabs-toggle="#defaultTabContent" role="tablist">
@@ -328,13 +315,13 @@ Use this example of a card component with navigation tabs that can change the co
328
315
  </div>
329
316
  </div>
330
317
  </div>
331
- {{< /example >}}
318
+ ```
332
319
 
333
320
  ## Card full width tabs
334
321
 
335
322
  Use this example of a card component to show tabs that span the full width of the element and change the content area clicking on each one.
336
323
 
337
- {{< example github="components/card.md" show_dark=true >}}
324
+ ```html
338
325
 
339
326
  <div class="w-full bg-neutral-primary border border-default rounded-base shadow-xs">
340
327
  <div class="sm:hidden">
@@ -418,7 +405,7 @@ Use this example of a card component to show tabs that span the full width of th
418
405
  <div id="accordion-flush-body-2" class="hidden" aria-labelledby="accordion-flush-heading-2">
419
406
  <div class="py-5 border-b border-default text-body">
420
407
  <p class="mb-2">Flowbite is first conceptualized and designed using the Figma software so everything you see in the library has a design equivalent in our Figma file.</p>
421
- <p>Check out the <a href="{{< param homepage >}}/figma/" class="text-fg-brand hover:underline">Figma design system</a> based on the utility classes from Tailwind CSS and components from Flowbite.</p>
408
+ <p>Check out the <a href="https://flowbite.com/figma/" class="text-fg-brand hover:underline">Figma design system</a> based on the utility classes from Tailwind CSS and components from Flowbite.</p>
422
409
  </div>
423
410
  </div>
424
411
  <h2 id="accordion-flush-heading-3">
@@ -433,7 +420,7 @@ Use this example of a card component to show tabs that span the full width of th
433
420
  <p class="mb-2">However, we actually recommend using both Flowbite, Flowbite Pro, and even Tailwind UI as there is no technical reason stopping you from using the best of two worlds.</p>
434
421
  <p class="mb-2">Learn more about these technologies:</p>
435
422
  <ul class="ps-5 list-disc">
436
- <li><a href="{{< param homepage >}}/pro/" class="text-fg-brand hover:underline">Flowbite Pro</a></li>
423
+ <li><a href="https://flowbite.com/pro/" class="text-fg-brand hover:underline">Flowbite Pro</a></li>
437
424
  <li><a href="https://tailwindui.com/" rel="nofollow" class="text-fg-brand hover:underline">Tailwind UI</a></li>
438
425
  </ul>
439
426
  </div>
@@ -442,13 +429,13 @@ Use this example of a card component to show tabs that span the full width of th
442
429
  </div>
443
430
  </div>
444
431
  </div>
445
- {{< /example >}}
432
+ ```
446
433
 
447
434
  ## Card with list
448
435
 
449
436
  Use this card example if you want to show a list of data:
450
437
 
451
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
438
+ ```html
452
439
 
453
440
  <div class="w-full max-w-sm p-6 bg-neutral-primary-soft border border-default rounded-base shadow-xs">
454
441
  <div class="flex items-center justify-between mb-4">
@@ -550,13 +537,13 @@ Use this card example if you want to show a list of data:
550
537
  </ul>
551
538
  </div>
552
539
  </div>
553
- {{< /example >}}
540
+ ```
554
541
 
555
542
  ## Pricing card
556
543
 
557
544
  Show detailed information to potential customers about your product's pricing plan, list of features, and a purchase button.
558
545
 
559
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
546
+ ```html
560
547
 
561
548
  <div class="w-full max-w-sm p-6 bg-neutral-primary-soft border border-default rounded-base shadow-xs">
562
549
  <h5 class="mb-4 text-xl font-medium text-body">Standard plan</h5>
@@ -596,13 +583,13 @@ Show detailed information to potential customers about your product's pricing pl
596
583
  </ul>
597
584
  <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>
598
585
  </div>
599
- {{< /example >}}
586
+ ```
600
587
 
601
588
  ## Testimonial card
602
589
 
603
590
  Use this example to split cards into multiple sections such as for testimonials or reviews.
604
591
 
605
- {{< example github="components/card.md" show_dark=true >}}
592
+ ```html
606
593
 
607
594
  <div class="grid mb-8 bg-neutral-primary-soft border border-default rounded-base shadow-xs md:mb-12 md:grid-cols-2">
608
595
  <figure class="flex flex-col items-center justify-center p-8 text-center border-b border-default rounded-t-base md:rounded-t-none md:rounded-ss-base md:border-e">
@@ -658,13 +645,13 @@ Use this example to split cards into multiple sections such as for testimonials
658
645
  </figcaption>
659
646
  </figure>
660
647
  </div>
661
- {{< /example >}}
648
+ ```
662
649
 
663
650
  ## Crypto card
664
651
 
665
652
  Use this web3 card component to show a list of applications that you can use to connect your crypto wallet for NFT related trading and authentication.
666
653
 
667
- {{< example class="flex justify-center" github="components/card.md" show_dark=true >}}
654
+ ```html
668
655
  <div class="w-full max-w-sm p-4 sm:p-6 bg-neutral-primary-soft border border-default rounded-base shadow-xs">
669
656
  <h5 class="mb-2 text-base md:text-xl font-semibold text-heading">Connect wallet</h5>
670
657
  <p class="text-body">Connect with one of our available wallet providers or create a new one.</p>
@@ -708,4 +695,4 @@ Use this web3 card component to show a list of applications that you can use to
708
695
  </a>
709
696
  </div>
710
697
  </div>
711
- {{< /example >}}
698
+ ```
@@ -1,17 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Carousel - Flowbite
4
- description: Use the carousel component to slide through multiple elements and images using custom controls, indicators, intervals, and options
5
- group: components
6
- toc: true
7
- requires_js: true
8
-
9
- previous: Card
10
- previousLink: components/card/
11
- next: Chat bubble
12
- nextLink: components/chat-bubble/
13
- ---
14
-
15
1
  The carousel component can be used to cycle through a set of elements using custom options, controls, and indicators based on the JavaScript object from Flowbite.
16
2
 
17
3
  ## Default slider
@@ -25,7 +11,7 @@ You can add as many carousel items as you want, but make sure that you add the `
25
11
 
26
12
  Use the `duration-*` and the animation classes from Tailwind CSS to apply custom effects to the carousel items and don't forget to set the `hidden` class by default to prevent flickering.
27
13
 
28
- {{< example github="components/carousel.md" show_dark=true >}}
14
+ ```html
29
15
 
30
16
  <div id="default-carousel" class="relative w-full" data-carousel="slide">
31
17
  <!-- Carousel wrapper -->
@@ -73,7 +59,7 @@ Use the `duration-*` and the animation classes from Tailwind CSS to apply custom
73
59
  </span>
74
60
  </button>
75
61
  </div>
76
- {{< /example >}}
62
+ ```
77
63
 
78
64
  ## Controls
79
65
 
@@ -81,7 +67,7 @@ Use the `data-carousel-prev` and `data-carousel-next` data attribute to listen t
81
67
 
82
68
  You can customize the control elements with the classes from Tailwind CSS anyhow you want.
83
69
 
84
- {{< example github="components/carousel.md" show_dark=true >}}
70
+ ```html
85
71
 
86
72
  <div id="controls-carousel" class="relative w-full" data-carousel="static">
87
73
  <!-- Carousel wrapper -->
@@ -121,13 +107,13 @@ You can customize the control elements with the classes from Tailwind CSS anyhow
121
107
  </span>
122
108
  </button>
123
109
  </div>
124
- {{< /example >}}
110
+ ```
125
111
 
126
112
  ## Indicators
127
113
 
128
114
  Show the carousel indicators by adding the `data-carousel-slide-to={position}` to any number or style of indicator elements where the value equals the position of the slider element.
129
115
 
130
- {{< example github="components/carousel.md" show_dark=true >}}
116
+ ```html
131
117
 
132
118
  <div id="indicators-carousel" class="relative w-full" data-carousel="static">
133
119
  <!-- Carousel wrapper -->
@@ -175,13 +161,13 @@ Show the carousel indicators by adding the `data-carousel-slide-to={position}` t
175
161
  </span>
176
162
  </button>
177
163
  </div>
178
- {{< /example >}}
164
+ ```
179
165
 
180
166
  ## Animation
181
167
 
182
168
  You can easily customize the duration and animation style of the carousel component by using the `duration-*` and `ease-*` utility classes from Tailwind CSS.
183
169
 
184
- {{< example github="components/carousel.md" show_dark=true >}}
170
+ ```html
185
171
 
186
172
  <div id="animation-carousel" class="relative w-full" data-carousel="static">
187
173
  <!-- Carousel wrapper -->
@@ -221,7 +207,7 @@ You can easily customize the duration and animation style of the carousel compon
221
207
  </span>
222
208
  </button>
223
209
  </div>
224
- {{< /example >}}
210
+ ```
225
211
 
226
212
  ## JavaScript behaviour
227
213
 
@@ -505,7 +491,7 @@ Use the following methods on the Carousel object to programmatically manipulate
505
491
 
506
492
  Check out the following example to learn how to programmatically create a new Carousel object by passing the parameters, using the methods, and the callback functions.
507
493
 
508
- {{< code lang="javascript" file="carousel.js" icon="file" >}}
494
+ ```javascript
509
495
  const carouselElement = document.getElementById('carousel-example');
510
496
 
511
497
  const items = [
@@ -573,48 +559,48 @@ const instanceOptions = {
573
559
  id: 'carousel-example',
574
560
  override: true
575
561
  };
576
- {{< /code >}}
562
+ ```
577
563
 
578
564
  Create a new carousel object using the options set above.
579
565
 
580
- {{< code lang="javascript" file="carousel.js" icon="file" >}}
566
+ ```javascript
581
567
  import { Carousel } from 'flowbite';
582
568
 
583
569
  const carousel = new Carousel(carouselElement, items, options, instanceOptions);
584
- {{< /code >}}
570
+ ```
585
571
 
586
572
  Use the `next()` and `prev()` public methods on the carousel object to jump to the left or right carousel slide item based on the position of the current active item.
587
573
 
588
- {{< code lang="javascript" file="carousel.js" icon="file" >}}
574
+ ```javascript
589
575
  // goes to the next (right) slide
590
576
  carousel.next();
591
577
 
592
578
  // goes to the previous (left) slide
593
579
  carousel.prev();
594
- {{< /code >}}
580
+ ```
595
581
 
596
582
  Use the `slideTo(position)` public method to jump to the carousel slide item with the specified position.
597
583
 
598
- {{< code lang="javascript" file="carousel.js" icon="file" >}}
584
+ ```javascript
599
585
  // jumps to the 3rd position (position starts from 0)
600
586
  carousel.slideTo(2);
601
- {{< /code >}}
587
+ ```
602
588
 
603
589
  Use the `cycle()` method to start an automated cycling where the duration is the milliseconds of time between each slide and the `pause()` method to clear the cycle event.
604
590
 
605
- {{< code lang="javascript" file="carousel.js" icon="file" >}}
591
+ ```javascript
606
592
  // starts or resumes the carousel cycling (automated sliding)
607
593
  carousel.cycle();
608
594
 
609
595
  // pauses the cycling (automated sliding)
610
596
  carousel.pause();
611
- {{< /code >}}
597
+ ```
612
598
 
613
599
  ### HTML Markup
614
600
 
615
601
  Here is an example of the HTML markup that you can use for the JavaScript example above. Please note that you should use the `hidden` class from Tailwind CSS to hide the carousel items by default.
616
602
 
617
- {{< code lang="html" file="carousel.html" icon="file" >}}
603
+ ```html
618
604
  <div id="carousel-example" class="relative w-full">
619
605
  <!-- Carousel wrapper -->
620
606
  <div
@@ -740,11 +726,11 @@ Here is an example of the HTML markup that you can use for the JavaScript exampl
740
726
  </span>
741
727
  </button>
742
728
  </div>
743
- {{< /code >}}
729
+ ```
744
730
 
745
731
  If you want to set trigger the next or previous slide item for the any button, just add some event listeners and call the `next()` and `prev()` methods on the Carousel object.
746
732
 
747
- {{< code lang="javascript" file="carousel.js" icon="file" >}}
733
+ ```javascript
748
734
  const $prevButton = document.getElementById('data-carousel-prev');
749
735
  const $nextButton = document.getElementById('data-carousel-next');
750
736
 
@@ -755,15 +741,15 @@ $prevButton.addEventListener('click', () => {
755
741
  $nextButton.addEventListener('click', () => {
756
742
  carousel.next();
757
743
  });
758
- {{< /code >}}
744
+ ```
759
745
 
760
746
  ### TypeScript
761
747
 
762
- If you're using the <a href="{{< ref "getting-started/typescript" >}}">TypeScript configuration</a> from Flowbite then you can import the types for the Carousel class, parameters and its options.
748
+ If you're using the TypeScript configuration from Flowbite then you can import the types for the Carousel class, parameters and its options.
763
749
 
764
750
  Here's an example that applies the types from Flowbite to the code above:
765
751
 
766
- {{< code lang="typescript" file="carousel.ts" icon="file" >}}
752
+ ```typescript
767
753
  import { Carousel } from 'flowbite';
768
754
  import type {
769
755
  CarouselItem,
@@ -855,4 +841,4 @@ $prevButton.addEventListener('click', () => {
855
841
  $nextButton.addEventListener('click', () => {
856
842
  carousel.next();
857
843
  });
858
- {{< /code >}}
844
+ ```