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 Indicators - Flowbite
4
- description: Use the indicator component to show a number count, account status, or as a loading label positioned relative to the parent component coded with Tailwind CSS
5
- group: components
6
- toc: true
7
-
8
- previous: Gallery
9
- previousLink: components/gallery/
10
- next: Jumbotron
11
- nextLink: components/jumbotron/
12
- ---
13
-
14
1
  The indicator component can be used as a small element positioned absolutely relative to another component such as a button or card and show a number count, account status (red for offline, green for online) and other useful information.
15
2
 
16
3
  Check out the following examples for multiple sizes, colors, positionings, styles, and more all coded with Tailwind CSS and Flowbite.
@@ -19,7 +6,7 @@ Check out the following examples for multiple sizes, colors, positionings, style
19
6
 
20
7
  Use this example to create a simple indicator with multiple colors and position it anywhere on the website.
21
8
 
22
- {{< example class="flex items-center justify-center" github="components/indicators.md" show_dark=true >}}
9
+ ```html
23
10
  <span class="flex w-3 h-3 me-3 bg-neutral-quaternary rounded-full"></span>
24
11
  <span class="flex w-3 h-3 me-3 bg-dark rounded-full"></span>
25
12
  <span class="flex w-3 h-3 me-3 bg-brand rounded-full"></span>
@@ -29,37 +16,37 @@ Use this example to create a simple indicator with multiple colors and position
29
16
  <span class="flex w-3 h-3 me-3 bg-indigo rounded-full"></span>
30
17
  <span class="flex w-3 h-3 me-3 bg-warning rounded-full"></span>
31
18
  <span class="flex w-3 h-3 me-3 bg-teal rounded-full"></span>
32
- {{< /example >}}
19
+ ```
33
20
 
34
21
  ## Legend indicator
35
22
 
36
23
  This example can be used as a legend indicator for charts to also add a text next to the bullet point.
37
24
 
38
- {{< example class="flex items-center justify-center" github="components/indicators.md" show_dark=true >}}
25
+ ```html
39
26
  <span class="flex items-center text-sm font-medium text-heading me-3"><span class="flex w-2.5 h-2.5 bg-brand rounded-full me-1.5 shrink-0"></span>Visitors</span>
40
27
  <span class="flex items-center text-sm font-medium text-heading me-3"><span class="flex w-2.5 h-2.5 bg-purple rounded-full me-1.5 shrink-0"></span>Sessions</span>
41
28
  <span class="flex items-center text-sm font-medium text-heading me-3"><span class="flex w-2.5 h-2.5 bg-indigo rounded-full me-1.5 shrink-0"></span>Customers</span>
42
29
  <span class="flex items-center text-sm font-medium text-heading me-3"><span class="flex w-2.5 h-2.5 bg-teal rounded-full me-1.5 shrink-0"></span>Revenue</span>
43
- {{< /example >}}
30
+ ```
44
31
 
45
32
  ## Indicator count
46
33
 
47
34
  This example can be used to show a number count inside the indicator and position it relative to a button component.
48
35
 
49
- {{< example github="components/indicators.md" class="flex items-center justify-center" show_dark=true >}}
36
+ ```html
50
37
  <button type="button" class="relative inline-flex items-center 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">
51
38
  <svg class="w-4 h-4 me-1.5 -ms-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="M4 13h3.439a.991.991 0 0 1 .908.6 3.978 3.978 0 0 0 7.306 0 .99.99 0 0 1 .908-.6H20M4 13v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-6M4 13l2-9h12l2 9M9 7h6m-7 3h8"/></svg>
52
39
  <span class="sr-only">Notifications</span>
53
40
  Messages
54
41
  <div class="absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white bg-danger border-2 border-buffer rounded-full -top-2 -end-2">8</div>
55
42
  </button>
56
- {{< /example >}}
43
+ ```
57
44
 
58
45
  ## Status indicator
59
46
 
60
47
  Use this example to show a status indicator for the currently logged in user by showing red for offline and green for online.
61
48
 
62
- {{< example github="components/indicators.md" class="flex items-center justify-center" show_dark=true >}}
49
+ ```html
63
50
 
64
51
  <div class="relative me-4">
65
52
  <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="profile image">
@@ -69,13 +56,13 @@ Use this example to show a status indicator for the currently logged in user by
69
56
  <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="profile image">
70
57
  <span class="top-0 start-7 absolute w-3.5 h-3.5 bg-danger border-2 border-buffer rounded-full"></span>
71
58
  </div>
72
- {{< /example >}}
59
+ ```
73
60
 
74
61
  ## Badge indicator
75
62
 
76
63
  This example can be used to add an indicator inside of a badge component.
77
64
 
78
- {{< example github="components/indicators.md" class="flex items-center justify-center" show_dark=true >}}
65
+ ```html
79
66
 
80
67
  <ul role="list" class="max-w-md divide-y divide-default">
81
68
  <li class="py-3 sm:py-4">
@@ -117,13 +104,13 @@ This example can be used to add an indicator inside of a badge component.
117
104
  </div>
118
105
  </li>
119
106
  </ul>
120
- {{< /example >}}
107
+ ```
121
108
 
122
109
  ## Stepper indicator
123
110
 
124
111
  You can also use the indicators inside of a stepper component when completing a form element.
125
112
 
126
- {{< example class="space-y-8" github="components/indicators.md" show_dark=true >}}
113
+ ```html
127
114
 
128
115
  <ol class="flex items-center">
129
116
  <li class="relative w-full mb-6">
@@ -215,24 +202,24 @@ You can also use the indicators inside of a stepper component when completing a
215
202
  </div>
216
203
  </li>
217
204
  </ol>
218
- {{< /example >}}
205
+ ```
219
206
 
220
207
  ## Loading indicator
221
208
 
222
209
  Use this animated loading indicator when content inside of a card is still loading.
223
210
 
224
- {{< example class="space-y-8 flex items-center justify-center" github="components/indicators.md" show_dark=true >}}
211
+ ```html
225
212
 
226
213
  <div class="flex items-center justify-center bg-neutral-secondary-soft h-56 w-56 border border-default text-fg-brand-strong text-xs font-medium rounded-base">
227
214
  <div class="px-2 py-px ring-1 ring-inset ring-brand-subtle text-fg-brand-strong text-xs font-medium rounded-sm bg-brand-softer animate-pulse">loading...</div>
228
215
  </div>
229
- {{< /example >}}
216
+ ```
230
217
 
231
218
  ## Spinner indicator
232
219
 
233
220
  Use this animated spinner component inside of a card component that hasn't loaded yet.
234
221
 
235
- {{< example class="space-y-8 flex items-center justify-center" github="components/indicators.md" show_dark=true >}}
222
+ ```html
236
223
 
237
224
  <div class="flex items-center justify-center bg-neutral-secondary-soft h-56 w-56 border border-default text-fg-brand-strong text-xs font-medium rounded-base">
238
225
  <div role="status">
@@ -240,13 +227,13 @@ Use this animated spinner component inside of a card component that hasn't loade
240
227
  <span class="sr-only">Loading...</span>
241
228
  </div>
242
229
  </div>
243
- {{< /example >}}
230
+ ```
244
231
 
245
232
  ## Indicator position
246
233
 
247
234
  Use these examples to position the indicator component anywhere relative to the parent element.
248
235
 
249
- {{< example class="flex items-center justify-center space-y-8" github="components/indicators.md" show_dark=true >}}
236
+ ```html
250
237
 
251
238
  <div class="relative bg-neutral-secondary-soft h-56 w-56 border border-default text-fg-brand-strong text-xs font-medium rounded-base">
252
239
  <span class="bg-brand-softer text-xs font-medium text-fg-brand text-center p-0.5 ring-1 ring-inset ring-brand-subtle rounded-base px-2 absolute -translate-y-1/2 translate-x-1/2 right-1/2">top-center</span>
@@ -259,4 +246,4 @@ Use these examples to position the indicator component anywhere relative to the
259
246
  <span class="bg-brand-softer text-xs font-medium text-fg-brand text-center p-0.5 ring-1 ring-inset ring-brand-subtle rounded-base px-2 absolute translate-y-1/2 -translate-x-1/2 right-auto bottom-0 left-0">bottom-left</span>
260
247
  <span class="bg-brand-softer text-xs font-medium text-fg-brand text-center p-0.5 ring-1 ring-inset ring-brand-subtle rounded-base px-2 absolute translate-y-1/2 translate-x-1/2 left-auto bottom-0 right-0">bottom-right</span>
261
248
  </div>
262
- {{< /example >}}
249
+ ```
@@ -1,16 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Jumbotron - Flowbite
4
- description: Use the jumbotron component to show a marketing message to your users based on a headline and image inside of a card box based on Tailwind CSS
5
- group: components
6
- toc: true
7
-
8
- previous: Indicators
9
- previousLink: components/indicators/
10
- next: KBD (Keyboard)
11
- nextLink: components/kbd/
12
- ---
13
-
14
1
  The Jumbotron (hero) component can be used as the first section of your website with a focus on a marketing message to increase the likelihood of the user to continue browsing your website.
15
2
 
16
3
  This UI component features a heading title, a short description, an optional CTA button, background image, gradient or solid background color and it's generally inside of a card element.
@@ -21,7 +8,7 @@ The jumbotron component from Flowbite is responsive on all devices, natively sup
21
8
 
22
9
  Use this default example to show a title, description, and two CTA buttons for the jumbotron component.
23
10
 
24
- {{< example bodyClass="p-0" github="components/jumbotron.md" show_dark=true >}}
11
+ ```html
25
12
 
26
13
  <section class="bg-neutral-primary">
27
14
  <div class="py-8 px-4 mx-auto max-w-screen-2xl text-center lg:py-16">
@@ -36,13 +23,13 @@ Use this default example to show a title, description, and two CTA buttons for t
36
23
  </div>
37
24
  </div>
38
25
  </section>
39
- {{< /example >}}
26
+ ```
40
27
 
41
28
  ## Background image
42
29
 
43
30
  Use this jumbotron to apply a background image with a darkening opacity effect to improve readability.
44
31
 
45
- {{< example bodyClass="!p-0" github="components/jumbotron.md" show_dark=true >}}
32
+ ```html
46
33
 
47
34
  <section class="bg-center bg-no-repeat bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/conference.jpg')] bg-dark bg-blend-multiply">
48
35
  <div class="px-4 mx-auto max-w-screen-xl text-center py-24 lg:py-56">
@@ -57,13 +44,13 @@ Use this jumbotron to apply a background image with a darkening opacity effect t
57
44
  </div>
58
45
  </div>
59
46
  </section>
60
- {{< /example >}}
47
+ ```
61
48
 
62
49
  ## Featured video
63
50
 
64
51
  This component can be used to feature a video together with a heading title, description, and CTA buttons.
65
52
 
66
- {{< example bodyClass="!p-0" github="components/jumbotron.md" show_dark=true >}}
53
+ ```html
67
54
 
68
55
  <section class="bg-neutral-primary">
69
56
  <div class="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 grid lg:grid-cols-2 gap-8 lg:gap-16">
@@ -83,13 +70,13 @@ This component can be used to feature a video together with a heading title, des
83
70
  </div>
84
71
  </div>
85
72
  </section>
86
- {{< /example >}}
73
+ ```
87
74
 
88
75
  ## Authentication form
89
76
 
90
77
  Use this component to show a sign in or register form as the first section of your website.
91
78
 
92
- {{< example bodyClass="!p-0 bg-gray-50 dark:bg-gray-900" github="components/jumbotron.md" show_dark=true >}}
79
+ ```html
93
80
 
94
81
  <section class="bg-neutral-primary">
95
82
  <div class="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 grid lg:grid-cols-2 gap-8 lg:gap-16">
@@ -126,13 +113,13 @@ Use this component to show a sign in or register form as the first section of yo
126
113
  </div>
127
114
  </div>
128
115
  </section>
129
- {{< /example >}}
116
+ ```
130
117
 
131
118
  ## Gradient background
132
119
 
133
120
  Use this component to show a hero pattern with a linear gradient layout as an overlay for added effects.
134
121
 
135
- {{< example bodyClass="!p-0" github="components/jumbotron.md" show_dark=true >}}
122
+ ```html
136
123
 
137
124
  <section class="bg-neutral-primary bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/hero-pattern.svg')] dark:bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/hero-pattern-dark.svg')]">
138
125
  <div class="py-8 px-4 mx-auto max-w-screen-xl text-center lg:py-16 z-10 relative">
@@ -158,13 +145,13 @@ Use this component to show a hero pattern with a linear gradient layout as an ov
158
145
  </div>
159
146
  <div class="bg-gradient-to-b from-blue-50 to-transparent dark:from-blue-900 w-full h-full absolute top-0 left-0 z-0"></div>
160
147
  </section>
161
- {{< /example >}}
148
+ ```
162
149
 
163
150
  ## Jumbotron with cards
164
151
 
165
152
  This example can be used to show cards with headings, descriptions, and CTA buttons inside a grid layout.
166
153
 
167
- {{< example bodyClass="!p-0" github="components/jumbotron.md" show_dark=true >}}
154
+ ```html
168
155
 
169
156
  <section class="bg-neutral-primary">
170
157
  <div class="py-8 px-4 mx-auto max-w-screen-xl lg:py-16">
@@ -206,7 +193,7 @@ This example can be used to show cards with headings, descriptions, and CTA butt
206
193
  </div>
207
194
  </div>
208
195
  </section>
209
- {{< /example >}}
196
+ ```
210
197
 
211
198
  ## More examples
212
199
 
@@ -1,16 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS KBD (Keyboard) - Flowbite
4
- description: Use the KBD component as an inline element to denote textual user input from the keyboard inside paragraphs, tables, and other components
5
- group: components
6
- toc: true
7
-
8
- previous: Jumbotron
9
- previousLink: components/jumbotron/
10
- next: List group
11
- nextLink: components/list-group/
12
- ---
13
-
14
1
  The KBD (Keyboard) component can be used to indicate a textual user input from the keyboard inside other elements such as in text, tables, cards, and more.
15
2
 
16
3
  Use the semantic `<kbd>` keyboard input tag to use the default monospace font which is best suited for representing input keys.
@@ -19,7 +6,7 @@ Use the semantic `<kbd>` keyboard input tag to use the default monospace font wh
19
6
 
20
7
  Here's a list of KBD components that you can use inside any other element.
21
8
 
22
- {{< example github="components/kbd.md" show_dark=true >}}
9
+ ```html
23
10
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Shift</kbd>
24
11
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Ctrl</kbd>
25
12
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Tab</kbd>
@@ -27,24 +14,24 @@ Here's a list of KBD components that you can use inside any other element.
27
14
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Esc</kbd>
28
15
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Spacebar</kbd>
29
16
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Enter</kbd>
30
- {{< /example >}}
17
+ ```
31
18
 
32
19
  ## KBD inside text
33
20
 
34
21
  Use this example by nesting an inline KBD component inside a paragraph.
35
22
 
36
- {{< example github="components/kbd.md" show_dark=true >}}
23
+ ```html
37
24
 
38
25
  <p class="text-body">
39
26
  Please press <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Ctrl</kbd> + <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Shift</kbd> + <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">R</kbd> to re-render an MDN page.
40
27
  </p>
41
- {{< /example >}}
28
+ ```
42
29
 
43
30
  ## KBD inside table
44
31
 
45
32
  The KBD component can also be used inside table components to denote what type of key can be pressed for certain descriptions.
46
33
 
47
- {{< example github="components/kbd.md" show_dark=true >}}
34
+ ```html
48
35
 
49
36
  <div class="relative overflow-x-auto">
50
37
  <table class="w-full text-sm text-left rtl:text-right text-body">
@@ -114,13 +101,13 @@ The KBD component can also be used inside table components to denote what type o
114
101
  </tbody>
115
102
  </table>
116
103
  </div>
117
- {{< /example >}}
104
+ ```
118
105
 
119
106
  ## Arrow keys
120
107
 
121
108
  Use this example to show arrow keys inside the KBD styled element.
122
109
 
123
- {{< example github="components/list-group.md" show_dark=true >}}
110
+ ```html
124
111
  <kbd class="inline-flex items-center px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">
125
112
  <svg class="w-2.5 h-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 10">
126
113
  <path d="M9.207 1A2 2 0 0 0 6.38 1L.793 6.586A2 2 0 0 0 2.207 10H13.38a2 2 0 0 0 1.414-3.414L9.207 1Z"/>
@@ -145,13 +132,13 @@ Use this example to show arrow keys inside the KBD styled element.
145
132
  </svg>
146
133
  <span class="sr-only">Arrow key right</span>
147
134
  </kbd>
148
- {{< /example >}}
135
+ ```
149
136
 
150
137
  ## Letter keys
151
138
 
152
139
  Use this example if you need to show a key from the latin alphabet
153
140
 
154
- {{< example github="components/kbd.md" show_dark=true >}}
141
+ ```html
155
142
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">Q</kbd>
156
143
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">W</kbd>
157
144
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">E</kbd>
@@ -178,13 +165,13 @@ Use this example if you need to show a key from the latin alphabet
178
165
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">B</kbd>
179
166
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">N</kbd>
180
167
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">M</kbd>
181
- {{< /example >}}
168
+ ```
182
169
 
183
170
  ## Number keys
184
171
 
185
172
  Use this example to show a key inside a KBD component from the english numeral system.
186
173
 
187
- {{< example github="components/kbd.md" show_dark=true >}}
174
+ ```html
188
175
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">1</kbd>
189
176
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">2</kbd>
190
177
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">3</kbd>
@@ -195,13 +182,13 @@ Use this example to show a key inside a KBD component from the english numeral s
195
182
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">8</kbd>
196
183
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">9</kbd>
197
184
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">0</kbd>
198
- {{< /example >}}
185
+ ```
199
186
 
200
187
  ## Function keys
201
188
 
202
189
  This example can be used to denote function keys inside the KBD component.
203
190
 
204
- {{< example github="components/kbd.md" show_dark=true >}}
191
+ ```html
205
192
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">F1</kbd>
206
193
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">F2</kbd>
207
194
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">F3</kbd>
@@ -214,4 +201,4 @@ This example can be used to denote function keys inside the KBD component.
214
201
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">F10</kbd>
215
202
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">F11</kbd>
216
203
  <kbd class="px-2 py-1.5 text-xs font-semibold text-heading bg-neutral-tertiary border border-default-medium rounded-base">F12</kbd>
217
- {{< /example >}}
204
+ ```
@@ -1,23 +1,10 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS List Group - Flowbite
4
- description: Use the list group component to display a series of items, buttons or links inside a single element
5
- group: components
6
- toc: true
7
-
8
- previous: KBD (Keyboard)
9
- previousLink: components/kbd/
10
- next: Mega menu
11
- nextLink: components/mega-menu/
12
- ---
13
-
14
1
  The list group component can be used to display a series of elements, buttons or links inside a single card component similar to a sidebar.
15
2
 
16
3
  ## Default list group
17
4
 
18
5
  Here's an example of a list group that you can use right away.
19
6
 
20
- {{< example class="flex justify-center" github="components/list-group.md" show_dark=true >}}
7
+ ```html
21
8
 
22
9
  <ul class="w-48 text-sm font-medium text-heading bg-neutral-primary-soft border border-default rounded-base">
23
10
  <li class="w-full px-4 py-2 border-b border-default rounded-t-lg">Profile</li>
@@ -25,13 +12,13 @@ Here's an example of a list group that you can use right away.
25
12
  <li class="w-full px-4 py-2 border-b border-default">Messages</li>
26
13
  <li class="w-full px-4 py-2 rounded-b-lg">Download</li>
27
14
  </ul>
28
- {{< /example >}}
15
+ ```
29
16
 
30
17
  ## List group with links
31
18
 
32
19
  You can also display a series of links inside the list group element.
33
20
 
34
- {{< example class="flex justify-center" github="components/list-group.md" show_dark=true >}}
21
+ ```html
35
22
 
36
23
  <div class="w-48 text-sm font-medium text-heading bg-neutral-primary-soft border border-default rounded-base">
37
24
  <a href="#" aria-current="true" class="block w-full px-4 py-2 text-fg-brand bg-neutral-secondary-medium border-b border-default rounded-t-base cursor-pointer">
@@ -47,13 +34,13 @@ You can also display a series of links inside the list group element.
47
34
  Download
48
35
  </a>
49
36
  </div>
50
- {{< /example >}}
37
+ ```
51
38
 
52
39
  ## List group with buttons
53
40
 
54
41
  It is also possible to display a list of button element inside the list group component. The following example includes an active and disabled item as well.
55
42
 
56
- {{< example class="flex justify-center" github="components/list-group.md" show_dark=true >}}
43
+ ```html
57
44
 
58
45
  <div class="w-48 text-sm font-medium text-heading bg-neutral-primary-soft border border-default rounded-base">
59
46
  <button aria-current="true" type="button" class="w-full px-4 py-2 font-medium text-left rtl:text-right text-fg-brand bg-neutral-secondary-medium border-b border-default rounded-t-base cursor-pointer focus:outline-none">
@@ -72,13 +59,13 @@ It is also possible to display a list of button element inside the list group co
72
59
  Download
73
60
  </button>
74
61
  </div>
75
- {{< /example >}}
62
+ ```
76
63
 
77
64
  ## List group with icons
78
65
 
79
66
  Use the following example to create a list of buttons as a menu together with [SVG icons](https://flowbite.com/icons/).
80
67
 
81
- {{< example class="flex justify-center" github="components/list-group.md" show_dark=true >}}
68
+ ```html
82
69
 
83
70
  <div class="w-48 text-sm font-medium text-heading bg-neutral-primary-soft border border-default rounded-base">
84
71
  <a href="#" aria-current="true" class="flex items-center w-full px-4 py-2 text-fg-brand bg-neutral-secondary-medium border-b border-default rounded-t-base cursor-pointer">
@@ -98,14 +85,14 @@ Use the following example to create a list of buttons as a menu together with [S
98
85
  Download
99
86
  </a>
100
87
  </div>
101
- {{< /example >}}
88
+ ```
102
89
 
103
90
 
104
91
  ## Features list group
105
92
 
106
93
  Use this example to show a list of features with icons in a card component.
107
94
 
108
- {{< example class="flex justify-center" github="components/list-group.md" show_dark=true >}}
95
+ ```html
109
96
 
110
97
  <div class="w-72 bg-neutral-primary-soft border border-default rounded-base shadow-xs">
111
98
  <ul role="list" class="space-y-4 p-6">
@@ -139,13 +126,13 @@ Use this example to show a list of features with icons in a card component.
139
126
  </li>
140
127
  </ul>
141
128
  </div>
142
- {{< /example >}}
129
+ ```
143
130
 
144
131
  ## Statistic list with divider
145
132
 
146
133
  This example can be used to show a list of statistical data in a card component.
147
134
 
148
- {{< example class="flex justify-center" github="components/list-group.md" show_dark=true >}}
135
+ ```html
149
136
 
150
137
  <div class="w-96 bg-neutral-primary-soft border border-default rounded-base shadow-xs">
151
138
  <ul role="list" class="space-y-3 p-6 divide-y divide-default">
@@ -221,13 +208,13 @@ This example can be used to show a list of statistical data in a card component.
221
208
  </li>
222
209
  </ul>
223
210
  </div>
224
- {{< /example >}}
211
+ ```
225
212
 
226
213
  ## List with avatars and CTA
227
214
 
228
215
  Use this component to show a list of users with avatars and CTA buttons.
229
216
 
230
- {{< example class="flex justify-center" github="components/list-group.md" show_dark=true >}}
217
+ ```html
231
218
 
232
219
  <div class="w-full max-w-sm p-6 bg-neutral-primary-soft border border-default rounded-base shadow-xs">
233
220
  <h5 class="text-xl font-semibold text-heading mb-6">Latest users</h5>
@@ -362,4 +349,4 @@ Use this component to show a list of users with avatars and CTA buttons.
362
349
  </div>
363
350
  </div>
364
351
 
365
- {{< /example >}}
352
+ ```
@@ -1,17 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Mega Menu - Flowbite
4
- description: Use the mega menu component as a full-width dropdown inside the navbar to show a list of menu items based on multiple sizes, variants, and styles.
5
- group: components
6
- toc: true
7
- requires_js: true
8
-
9
- previous: List group
10
- previousLink: components/list-group/
11
- next: Modal
12
- nextLink: components/modal/
13
- ---
14
-
15
1
  The mega menu component is a full-width dropdown that can be triggered by clicking on the menu item and it shows a list of links that you can use to navigate through the pages on a website.
16
2
 
17
3
  Make sure that you have included the Flowbite JavaScript file inside your project to enable the interactivity of the hamburger icon on mobile devices and the dropdown functionality.
@@ -20,7 +6,7 @@ Make sure that you have included the Flowbite JavaScript file inside your projec
20
6
 
21
7
  Use this example to show a list of links aligned on three columns inside the mega menu dropdown.
22
8
 
23
- {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="300" >}}
9
+ ```html
24
10
 
25
11
  <nav class="bg-neutral-primary border-default">
26
12
  <div class="flex flex-wrap items-center justify-between max-w-screen-xl mx-auto p-4">
@@ -126,13 +112,13 @@ Use this example to show a list of links aligned on three columns inside the meg
126
112
  </div>
127
113
  </div>
128
114
  </nav>
129
- {{< /example >}}
115
+ ```
130
116
 
131
117
  ## Mega menu with icons
132
118
 
133
119
  This example of a mega menu dropdown can be used to also show an icon near the text of the link.
134
120
 
135
- {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="300" >}}
121
+ ```html
136
122
 
137
123
  <nav class="bg-neutral-primary border-default">
138
124
  <div class="flex flex-wrap items-center justify-between max-w-screen-xl mx-auto p-4">
@@ -249,13 +235,13 @@ This example of a mega menu dropdown can be used to also show an icon near the t
249
235
  </div>
250
236
  </div>
251
237
  </nav>
252
- {{< /example >}}
238
+ ```
253
239
 
254
240
  ## Full width dropdown
255
241
 
256
242
  Use this example to show a mega menu dropdown that spans the entire width of the document page.
257
243
 
258
- {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="440" >}}
244
+ ```html
259
245
 
260
246
  <nav class="bg-neutral-primary-soft border-default">
261
247
  <div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl p-4">
@@ -355,13 +341,13 @@ Use this example to show a mega menu dropdown that spans the entire width of the
355
341
  </div>
356
342
  </div>
357
343
  </nav>
358
- {{< /example >}}
344
+ ```
359
345
 
360
346
  ## Full width with CTA
361
347
 
362
348
  This example can be used to also show a CTA button or link next to the menu items inside the dropdown.
363
349
 
364
- {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="360" >}}
350
+ ```html
365
351
 
366
352
  <nav class="bg-neutral-primary-soft border-default">
367
353
  <div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl p-4">
@@ -454,13 +440,13 @@ This example can be used to also show a CTA button or link next to the menu item
454
440
  </div>
455
441
  </div>
456
442
  </nav>
457
- {{< /example >}}
443
+ ```
458
444
 
459
445
  ## Full width with image
460
446
 
461
447
  This example can be used to also show a CTA with a backdround image inside the dropdown next to the other menu items and links.
462
448
 
463
- {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="360" >}}
449
+ ```html
464
450
 
465
451
  <nav class="bg-neutral-primary-soft border-default">
466
452
  <div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl p-4">
@@ -551,7 +537,7 @@ This example can be used to also show a CTA with a backdround image inside the d
551
537
  </div>
552
538
  </div>
553
539
  </nav>
554
- {{< /example >}}
540
+ ```
555
541
 
556
542
  ## More examples
557
543