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 Badges - Flowbite
4
- description: Use Tailwind CSS badges as elements to show counts or labels separately or inside other components
5
- group: components
6
- toc: true
7
-
8
- previous: Avatar
9
- previousLink: components/avatar/
10
- next: Banner
11
- nextLink: components/banner/
12
- ---
13
-
14
1
  The badge component can be used to complement other elements such as buttons or text elements as a label or to show the count of a given data, such as the number of comments for an article or how much time has passed by since a comment has been made.
15
2
 
16
3
  Alternatively, badges can also be used as standalone elements that link to a certain page by using the anchor tag instead of a `span` element.
@@ -19,98 +6,98 @@ Alternatively, badges can also be used as standalone elements that link to a cer
19
6
 
20
7
  Use the following badge elements to indicate counts or labels inside or outside components.
21
8
 
22
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
9
+ ```html
23
10
  <span class="bg-brand-softer text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded">Brand</span>
24
11
  <span class="bg-neutral-primary-soft text-heading text-xs font-medium px-1.5 py-0.5 rounded">Alternative</span>
25
12
  <span class="bg-neutral-secondary-medium text-heading text-xs font-medium px-1.5 py-0.5 rounded">Gray</span>
26
13
  <span class="bg-danger-soft text-fg-danger-strong text-xs font-medium px-1.5 py-0.5 rounded">Danger</span>
27
14
  <span class="bg-success-soft text-fg-success-strong text-xs font-medium px-1.5 py-0.5 rounded">Success</span>
28
15
  <span class="bg-warning-soft text-fg-warning text-xs font-medium px-1.5 py-0.5 rounded">Warning</span>
29
- {{< /example >}}
16
+ ```
30
17
 
31
18
  ## Bordered badges
32
19
 
33
20
  This example can be used to add a border accent to the badge component.
34
21
 
35
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
22
+ ```html
36
23
  <span class="bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded">Brand</span>
37
24
  <span class="bg-neutral-primary-soft border border-default text-heading text-xs font-medium px-1.5 py-0.5 rounded">Alternative</span>
38
25
  <span class="bg-neutral-secondary-medium border border-default-medium text-heading text-xs font-medium px-1.5 py-0.5 rounded">Gray</span>
39
26
  <span class="bg-danger-soft border border-danger-subtle text-fg-danger-strong text-xs font-medium px-1.5 py-0.5 rounded">Danger</span>
40
27
  <span class="bg-success-soft border border-success-subtle text-fg-success-strong text-xs font-medium px-1.5 py-0.5 rounded">Success</span>
41
28
  <span class="bg-warning-soft border border-warning-subtle text-fg-warning text-xs font-medium px-1.5 py-0.5 rounded">Warning</span>
42
- {{< /example >}}
29
+ ```
43
30
 
44
31
  ## Large badges
45
32
 
46
33
  Use the `text-sm` utility class and increase the paddings to create a larger variant of the badges.
47
34
 
48
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
35
+ ```html
49
36
  <span class="bg-brand-softer text-fg-brand-strong text-sm font-medium px-2 py-1 rounded">Brand</span>
50
37
  <span class="bg-neutral-primary-soft text-heading text-sm font-medium px-2 py-1 rounded">Alternative</span>
51
38
  <span class="bg-neutral-secondary-medium text-heading text-sm font-medium px-2 py-1 rounded">Gray</span>
52
39
  <span class="bg-danger-soft text-fg-danger-strong text-sm font-medium px-2 py-1 rounded">Danger</span>
53
40
  <span class="bg-success-soft text-fg-success-strong text-sm font-medium px-2 py-1 rounded">Success</span>
54
41
  <span class="bg-warning-soft text-fg-warning text-sm font-medium px-2 py-1 rounded">Warning</span>
55
- {{< /example >}}
42
+ ```
56
43
 
57
44
  ## Large bordered badges
58
45
 
59
46
  Use these examples to create large and bordered styled badges.
60
47
 
61
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
48
+ ```html
62
49
  <span class="inline-flex items-center px-2 py-1 ring-1 ring-inset ring-brand-subtle text-fg-brand-strong text-sm font-medium rounded bg-brand-softer">Brand</span>
63
50
  <span class="inline-flex items-center px-2 py-1 ring-1 ring-inset ring-default text-heading text-sm font-medium rounded bg-neutral-primary-soft">Alternative</span>
64
51
  <span class="inline-flex items-center px-2 py-1 ring-1 ring-inset ring-default-medium text-heading text-sm font-medium rounded bg-neutral-secondary-medium">Gray</span>
65
52
  <span class="inline-flex items-center px-2 py-1 ring-1 ring-inset ring-danger-subtle text-fg-danger-strong text-sm font-medium rounded bg-danger-soft">Danger</span>
66
53
  <span class="inline-flex items-center px-2 py-1 ring-1 ring-inset ring-success-subtle text-fg-success-strong text-sm font-medium rounded bg-success-soft">Success</span>
67
54
  <span class="inline-flex items-center px-2 py-1 ring-1 ring-inset ring-warning-subtle text-fg-warning text-sm font-medium rounded bg-warning-soft">Warning</span>
68
- {{< /example >}}
55
+ ```
69
56
 
70
57
  ## Pill badges
71
58
 
72
59
  Use this example to make the corners even more rounded like pills for the badge component.
73
60
 
74
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
61
+ ```html
75
62
  <span class="bg-brand-softer text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded-full">Brand</span>
76
63
  <span class="bg-neutral-primary-soft text-heading text-xs font-medium px-1.5 py-0.5 rounded-fullm">Alternative</span>
77
64
  <span class="bg-neutral-secondary-medium text-heading text-xs font-medium px-1.5 py-0.5 rounded-full">Gray</span>
78
65
  <span class="bg-danger-soft text-fg-danger-strong text-xs font-medium px-1.5 py-0.5 rounded-full">Danger</span>
79
66
  <span class="bg-success-soft text-fg-success-strong text-xs font-medium px-1.5 py-0.5 rounded-full">Success</span>
80
67
  <span class="bg-warning-soft text-fg-warning text-xs font-medium px-1.5 py-0.5 rounded-full">Warning</span>
81
- {{< /example >}}
68
+ ```
82
69
 
83
70
  ## Pill bordered badges
84
71
 
85
72
  Use this example to create a more rounded styles pill badge with borders.
86
73
 
87
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
74
+ ```html
88
75
  <span class="bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded-full">Brand</span>
89
76
  <span class="bg-neutral-primary-soft border border-default text-heading text-xs font-medium px-1.5 py-0.5 rounded-full">Alternative</span>
90
77
  <span class="bg-neutral-secondary-medium border border-default-medium text-heading text-xs font-medium px-1.5 py-0.5 rounded-full">Gray</span>
91
78
  <span class="bg-danger-soft border border-danger-subtle text-fg-danger-strong text-xs font-medium px-1.5 py-0.5 rounded-full">Danger</span>
92
79
  <span class="bg-success-soft border border-success-subtle text-fg-success-strong text-xs font-medium px-1.5 py-0.5 rounded-full">Success</span>
93
80
  <span class="bg-warning-soft border border-warning-subtle text-fg-warning text-xs font-medium px-1.5 py-0.5 rounded-full">Warning</span>
94
- {{< /example >}}
81
+ ```
95
82
 
96
83
  ## Badges as links
97
84
 
98
85
  You can also use badges as anchor elements to link to another page.
99
86
 
100
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
87
+ ```html
101
88
  <a href="#" class="bg-brand-softer hover:bg-brand-soft border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded">Brand</a>
102
89
  <a href="#" class="bg-neutral-primary-soft hover:bg-neutral-secondary-medium border border-default text-heading text-xs font-medium px-1.5 py-0.5 rounded">Alternative</a>
103
90
  <a href="#" class="bg-neutral-secondary-medium hover:bg-neutral-tertiary-medium border border-default-medium text-heading text-xs font-medium px-1.5 py-0.5 rounded">Gray</a>
104
91
  <a href="#" class="bg-danger-soft hover:bg-danger-medium border border-danger-subtle text-fg-danger-strong text-xs font-medium px-1.5 py-0.5 rounded">Danger</a>
105
92
  <a href="#" class="bg-success-soft hover:bg-success-medium border border-success-subtle text-fg-success-strong text-xs font-medium px-1.5 py-0.5 rounded">Success</a>
106
93
  <a href="#" class="bg-warning-soft hover:bg-warning-medium border border-warning-subtle text-fg-warning text-xs font-medium px-1.5 py-0.5 rounded">Warning</a>
107
- {{< /example >}}
94
+ ```
108
95
 
109
96
  ## Badges with icon
110
97
 
111
98
  You can also use [SVG icons](https://flowbite.com/icons/) inside the badge elements.
112
99
 
113
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
100
+ ```html
114
101
  <span class="flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded">
115
102
  <svg class="w-3 h-3 me-1" 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="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
116
103
  2 mins ago
@@ -135,13 +122,13 @@ You can also use [SVG icons](https://flowbite.com/icons/) inside the badge eleme
135
122
  <svg class="w-3 h-3 me-1" 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="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
136
123
  2 mins agong
137
124
  </span>
138
- {{< /example >}}
125
+ ```
139
126
 
140
127
  ## Large badges with icon
141
128
 
142
129
  Use these large badges with SVG icons for an enhanced representation.
143
130
 
144
- {{< example class="flex-wrap justify-center gap-4" github="components/badge.md" show_dark=true >}}
131
+ ```html
145
132
  <span class="inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-sm font-medium leading-none px-2 py-1 rounded">
146
133
  <svg class="w-3.5 h-3.5 me-1.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
147
134
  2 mins ago
@@ -166,13 +153,13 @@ Use these large badges with SVG icons for an enhanced representation.
166
153
  <svg class="w-3.5 h-3.5 me-1.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
167
154
  2 mins agong
168
155
  </span>
169
- {{< /example >}}
156
+ ```
170
157
 
171
158
  ## Badges with only icon
172
159
 
173
160
  Alternatively, you can also use badges which indicate only a SVG icon.
174
161
 
175
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
162
+ ```html
176
163
  <span class="flex items-center justify-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium h-5 w-5 rounded-full">
177
164
  <svg class="w-3 h-3" 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="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
178
165
  </span>
@@ -191,13 +178,13 @@ Alternatively, you can also use badges which indicate only a SVG icon.
191
178
  <span class="flex items-center justify-center bg-warning-soft border border-warning-subtle text-fg-warning text-xs font-medium h-5 w-5 rounded-full">
192
179
  <svg class="w-3 h-3" 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="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
193
180
  </span>
194
- {{< /example >}}
181
+ ```
195
182
 
196
183
  ## Large badges with only icon
197
184
 
198
185
  Use these large badge components with only an icon inside of them.
199
186
 
200
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
187
+ ```html
201
188
  <span class="flex items-center justify-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium h-6 w-6 rounded-full">
202
189
  <svg class="w-3.5 h-3.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="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
203
190
  </span>
@@ -216,13 +203,13 @@ Use these large badge components with only an icon inside of them.
216
203
  <span class="flex items-center justify-center bg-warning-soft border border-warning-subtle text-fg-warning text-xs font-medium h-6 w-6 rounded-full">
217
204
  <svg class="w-3.5 h-3.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="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
218
205
  </span>
219
- {{< /example >}}
206
+ ```
220
207
 
221
208
  ## Badges with dot
222
209
 
223
210
  Use these badges with a dot for an alternative style of showing content.
224
211
 
225
- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
212
+ ```html
226
213
  <span class="flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded">
227
214
  <span class="h-1.5 w-1.5 bg-fg-brand-strong rounded-full me-1"></span>
228
215
  2 mins ago
@@ -247,13 +234,13 @@ Use these badges with a dot for an alternative style of showing content.
247
234
  <span class="h-1.5 w-1.5 bg-fg-warning rounded-full me-1"></span>
248
235
  2 mins agong
249
236
  </span>
250
- {{< /example >}}
237
+ ```
251
238
 
252
239
  ## Badges with SVG loader
253
240
 
254
241
  Use this example to show an animated SVG loader inside the badge component.
255
242
 
256
- {{< example class="flex flex-wrap justify-center gap-4" github="components/badge.md" show_dark=true >}}
243
+ ```html
257
244
  <span class="flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded gap-1">
258
245
  <svg aria-hidden="true" role="status" class="w-3 h-3 me-1 animate-spin text-fg-brand" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="#1C64F2"/></svg>
259
246
  <span>2 mins ago</span>
@@ -278,13 +265,13 @@ Use this example to show an animated SVG loader inside the badge component.
278
265
  <svg aria-hidden="true" role="status" class="w-3 h-3 me-1 animate-spin text-warning-medium" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="#D03801"/></svg>
279
266
  <span>2 mins ago</span>
280
267
  </span>
281
- {{< /example >}}
268
+ ```
282
269
 
283
270
  ## Dismissible badges (chips)
284
271
 
285
272
  Use the `data-dismiss-target` data attribute to dismiss the current badge where the value is the id of the target element using a transition animation. These can be used as tags inside an input component.
286
273
 
287
- {{< example class="flex flex-wrap justify-center gap-4" github="components/badge.md" show_dark=true >}}
274
+ ```html
288
275
  <span id="badge-dismiss-brand" class="inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium ps-1.5 pe-0.5 py-0.5 rounded gap-1">
289
276
  <span>Brand</span>
290
277
  <button type="button" class="inline-flex items-center p-0.5 text-sm bg-transparent rounded-xs hover:bg-brand-soft" data-dismiss-target="#badge-dismiss-brand" aria-label="Remove">
@@ -332,13 +319,13 @@ Use the `data-dismiss-target` data attribute to dismiss the current badge where
332
319
  <span class="sr-only">Remove badge</span>
333
320
  </button>
334
321
  </span>
335
- {{< /example >}}
322
+ ```
336
323
 
337
324
  ## Chips with avatar
338
325
 
339
326
  These components can be used to show avatar images inside of dismissible badges.
340
327
 
341
- {{< example class="flex flex-wrap justify-center gap-4" github="components/badge.md" show_dark=true >}}
328
+ ```html
342
329
  <span id="badge-avatar-dismiss-brand" class="inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium ps-1.5 pe-0.5 py-0.5 rounded gap-1">
343
330
  <img class="w-3.5 h-3.5 rounded-full me-1" src="/docs/images/people/profile-picture-5.jpg" alt="Rounded avatar">
344
331
  Brand
@@ -392,29 +379,29 @@ Warning
392
379
  <span class="sr-only">Remove badge</span>
393
380
  </button>
394
381
  </span>
395
- {{< /example >}}
382
+ ```
396
383
 
397
384
  ## Notification badge
398
385
 
399
386
  Use the following example to show a badge inside of a button component.
400
387
 
401
- {{< example class="flex justify-center" github="components/badge.md" show_dark=true >}}
388
+ ```html
402
389
  <button type="button" class="relative 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 p-3 focus:outline-none">
403
390
  <svg class="w-5 h-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-width="2" d="m3.5 5.5 7.893 6.036a1 1 0 0 0 1.214 0L20.5 5.5M4 19h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Z"/></svg>
404
391
  <span class="sr-only">Notifications</span>
405
392
  <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">20</div>
406
393
  </button>
407
- {{< /example >}}
394
+ ```
408
395
 
409
396
  ## Button with badge
410
397
 
411
398
  Use this example to add a badge inside a button component for a count indicator.
412
399
 
413
- {{< example class="flex justify-center" github="components/badge.md" show_dark=true >}}
400
+ ```html
414
401
  <button type="button" 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">
415
402
  Messages
416
403
  <span class="inline-flex items-center justify-center w-4 h-4 ms-2 text-xs font-semibold text-white bg-danger rounded-full">
417
404
  2
418
405
  </span>
419
406
  </button>
420
- {{< /example >}}
407
+ ```
@@ -1,17 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Sticky Banner - Flowbite
4
- description: Use the banner component to show marketing messages and CTA buttons at the top or bottom side of your website based on the utility classes from Tailwind CSS
5
- group: components
6
- toc: true
7
- requires_js: true
8
-
9
- previous: Badge
10
- previousLink: components/badge/
11
- next: Bottom Navigation
12
- nextLink: components/bottom-navigation/
13
- ---
14
-
15
1
  Get started with the sticky banner component coded with Tailwind CSS and Flowbite to show marketing, informational and CTA messages to your website visitors fixed to the top or bottom part of the page as the user scroll down the main content area.
16
2
 
17
3
  Explore the following examples based on various styles, sizes, and positionings to leverage the sticky banner component and increase marketing conversions with a responsive element supporting dark mode.
@@ -20,8 +6,7 @@ Explore the following examples based on various styles, sizes, and positionings
20
6
 
21
7
  Use this free example to show a text message for announcement with a CTA link, an icon element and a close button to dismiss the banner.
22
8
 
23
- {{< example class="p-0" github="components/banner.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
24
-
9
+ ```html
25
10
  <div id="sticky-banner" tabindex="-1" class="fixed top-0 start-0 z-50 flex justify-between w-full p-4 border-b border-default bg-neutral-primary-soft">
26
11
  <div class="flex items-center mx-auto">
27
12
  <p class="flex items-center text-sm font-normal text-body">
@@ -40,14 +25,13 @@ Use this free example to show a text message for announcement with a CTA link, a
40
25
  </div>
41
26
  </div>
42
27
 
43
- {{< /example >}}
28
+ ```
44
29
 
45
30
  ## Bottom banner position
46
31
 
47
32
  This example can be used to position the sticky banner to the bottom side of the page instead of the top side.
48
33
 
49
- {{< example class="p-0" github="components/banner.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
50
-
34
+ ```html
51
35
  <div id="bottom-banner" tabindex="-1" class="fixed bottom-0 start-0 z-50 flex justify-between w-full p-4 border-t border-default bg-neutral-primary-soft">
52
36
  <div class="flex items-center mx-auto">
53
37
  <p class="flex items-center text-sm font-normal text-body">
@@ -68,14 +52,13 @@ This example can be used to position the sticky banner to the bottom side of the
68
52
  </button>
69
53
  </div>
70
54
  </div>
71
- {{< /example >}}
55
+ ```
72
56
 
73
57
  ## Marketing CTA banner
74
58
 
75
59
  Use this free example to show a text message for announcement with a CTA link, an icon element and a close button to dismiss the banner. Set a different width by using the `max-w-{*}` utility classes from Tailwind CSS.
76
60
 
77
- {{< example class="p-0" github="components/banner.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
78
-
61
+ ```html
79
62
  <div id="marketing-banner" tabindex="-1" class="fixed z-50 flex flex-col md:flex-row justify-between w-[calc(100%-2rem)] p-4 -translate-x-1/2 bg-neutral-primary-soft border border-default rounded-base shadow-xs lg:max-w-7xl left-1/2 top-6">
80
63
  <div class="flex flex-col items-start mb-3 me-4 md:items-center md:flex-row md:mb-0">
81
64
  <a href="https://flowbite.com/" class="flex items-center mb-2 border-default md:pe-4 md:me-4 md:border-e md:mb-0">
@@ -94,14 +77,13 @@ Use this free example to show a text message for announcement with a CTA link, a
94
77
  </div>
95
78
  </div>
96
79
 
97
- {{< /example >}}
80
+ ```
98
81
 
99
82
  ## Newsletter sign-up banner
100
83
 
101
84
  This example can be used to encourage your website visitors to sign up to your email newsletter by showing an inline form inside the sticky banner on the top side of your page.
102
85
 
103
- {{< example class="p-0" github="components/banner.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
104
-
86
+ ```html
105
87
  <div id="newsletter-banner" tabindex="-1" class="fixed top-0 start-0 z-50 flex justify-between w-full p-4 border-b border-default bg-neutral-primary-soft">
106
88
  <div class="flex items-center shrink-0 w-full mx-auto sm:w-auto">
107
89
  <form class="flex flex-col items-center w-full md:flex-row md:space-x-4 space-y-4 md:space-y-0">
@@ -117,14 +99,13 @@ This example can be used to encourage your website visitors to sign up to your e
117
99
  </button>
118
100
  </div>
119
101
  </div>
120
- {{< /example >}}
102
+ ```
121
103
 
122
104
  ## Informational banner
123
105
 
124
106
  This example can be used to share important information with your website visitors by showing a heading and a paragraph inside the sticky banner and two CTA buttons with links.
125
107
 
126
- {{< example class="p-0" github="components/banner.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
127
-
108
+ ```html
128
109
  <div id="informational-banner" tabindex="-1" class="fixed top-0 start-0 z-50 flex flex-col justify-between w-full p-4 border-b border-default md:flex-row bg-neutral-secondary-soft">
129
110
  <div class="mb-4 md:mb-0 md:me-4">
130
111
  <h2 class="mb-1 text-base font-semibold text-heading">Integration is the key</h2>
@@ -138,7 +119,7 @@ This example can be used to share important information with your website visito
138
119
  </button>
139
120
  </div>
140
121
  </div>
141
- {{< /example >}}
122
+ ```
142
123
 
143
124
  ## More examples
144
125
 
@@ -1,16 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Bottom Navigation - Flowbite
4
- description: Use the bottom navigation bar component to allow users to navigate through your website or create a control bar using a menu that is positioned at the bottom of the page
5
- group: components
6
- toc: true
7
-
8
- previous: Banner
9
- previousLink: components/banner/
10
- next: Breadcrumbs
11
- nextLink: components/breadcrumb/
12
- ---
13
-
14
1
  The bottom bar component can be used to allow menu items and certain control actions to be performed by the user through the usage of a fixed bar positioning to the bottom side of your page.
15
2
 
16
3
  Check out multiple examples of the bottom navigation component based on various styles, controls, sizes, content and leverage the utility classes from Tailwind CSS to integrate into your own project.
@@ -19,7 +6,7 @@ Check out multiple examples of the bottom navigation component based on various
19
6
 
20
7
  Use the default bottom navigation bar example to show a list of menu items as buttons to allow the user to navigate through your website based on a fixed position. You can also use anchor tags instead of buttons.
21
8
 
22
- {{< example class="p-0" github="components/bottom-navigation.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
9
+ ```html
23
10
 
24
11
  <div class="fixed bottom-0 left-0 z-50 w-full h-16 bg-neutral-primary-soft border-t border-default">
25
12
  <div class="grid h-full max-w-lg grid-cols-4 mx-auto font-medium">
@@ -41,13 +28,13 @@ Use the default bottom navigation bar example to show a list of menu items as bu
41
28
  </button>
42
29
  </div>
43
30
  </div>
44
- {{< /example >}}
31
+ ```
45
32
 
46
33
  ## Menu items with border
47
34
 
48
35
  This example can be used to show a border between the menu items inside the bottom navbar.
49
36
 
50
- {{< example class="p-0" github="components/bottom-navigation.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
37
+ ```html
51
38
 
52
39
  <div class="fixed bottom-0 left-0 z-50 w-full h-16 bg-neutral-primary-soft border-t border-default">
53
40
  <div class="grid h-full max-w-lg grid-cols-4 mx-auto font-medium">
@@ -69,13 +56,13 @@ This example can be used to show a border between the menu items inside the bott
69
56
  </button>
70
57
  </div>
71
58
  </div>
72
- {{< /example >}}
59
+ ```
73
60
 
74
61
  ## Application bar example
75
62
 
76
63
  Use this example to show a CTA button in the center of the navigation component to create new items.
77
64
 
78
- {{< example class="p-0" github="components/bottom-navigation.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
65
+ ```html
79
66
 
80
67
  <div class="fixed z-50 w-full h-16 max-w-lg -translate-x-1/2 bg-neutral-primary-soft border border-default rounded-full bottom-4 left-1/2">
81
68
  <div class="grid h-full max-w-lg grid-cols-5 mx-auto">
@@ -123,13 +110,13 @@ Use this example to show a CTA button in the center of the navigation component
123
110
  </div>
124
111
  </div>
125
112
  </div>
126
- {{< /example >}}
113
+ ```
127
114
 
128
115
  ## Example with pagination
129
116
 
130
117
  This example be used to paginate multiple pages on a single view alongside other menu items.
131
118
 
132
- {{< example class="p-0" github="components/bottom-navigation.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
119
+ ```html
133
120
 
134
121
  <div class="fixed bottom-0 z-50 w-full h-16 -translate-x-1/2 bg-neutral-primary-soft border-t border-default left-1/2">
135
122
  <div class="grid h-full max-w-lg grid-cols-6 mx-auto">
@@ -180,11 +167,11 @@ This example be used to paginate multiple pages on a single view alongside other
180
167
  </div>
181
168
  </div>
182
169
  </div>
183
- {{< /example >}}
170
+ ```
184
171
 
185
172
  ## Button group bottom bar
186
173
 
187
- {{< example class="p-0" github="components/bottom-navigation.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true show_dark=true >}}
174
+ ```html
188
175
 
189
176
  <div class="fixed bottom-0 z-50 w-full -translate-x-1/2 bg-neutral-primary-soft border-t border-default left-1/2">
190
177
  <div class="w-full">
@@ -243,7 +230,7 @@ This example be used to paginate multiple pages on a single view alongside other
243
230
  </div>
244
231
  </div>
245
232
  </div>
246
- {{< /example >}}
233
+ ```
247
234
 
248
235
  ## Card with bottom bar
249
236
 
@@ -251,7 +238,7 @@ This example can be used to position a bottom navigation bar inside of a card el
251
238
 
252
239
  You can even use the other bottom navbar examples to exchange the default one presented here.
253
240
 
254
- {{< example class="flex items-center justify-center p-4" github="components/bottom-navigation.md" show_dark=true >}}
241
+ ```html
255
242
 
256
243
  <div class="relative w-full max-w-sm overflow-y-scroll bg-neutral-primary-soft border border-default shadow-xs rounded-base h-96">
257
244
  <ul>
@@ -318,13 +305,13 @@ You can even use the other bottom navbar examples to exchange the default one pr
318
305
  </div>
319
306
  </div>
320
307
  </div>
321
- {{< /example >}}
308
+ ```
322
309
 
323
310
  ## Online meeting control bar
324
311
 
325
312
  Use this component to show a list of options for online video meetings by showing a list of options such as muting the microphone, hiding the camera, adjusting the volume and more.
326
313
 
327
- {{< example class="p-0" github="components/bottom-navigation.md" iframeHeight="480" iframeMaxHeight="480" skeletonPlaceholders=true disable_init_js=true show_dark=true >}}
314
+ ```html
328
315
 
329
316
  <div class="fixed bottom-0 left-0 z-50 grid w-full h-16 grid-cols-1 px-8 bg-neutral-primary-soft border-t border-default md:grid-cols-3">
330
317
  <div class="items-center justify-center hidden text-body me-auto md:flex">
@@ -409,13 +396,13 @@ Use this component to show a list of options for online video meetings by showin
409
396
  </div>
410
397
  </div>
411
398
  </div>
412
- {{< /example >}}
399
+ ```
413
400
 
414
401
  ## Video player bar
415
402
 
416
403
  Use this component to show control buttons for a video or audio that is playing in the browser to control the volume, navigate between videos, pause or start the video, and more.
417
404
 
418
- {{< example class="p-0" github="components/bottom-navigation.md" iframeHeight="480" iframeMaxHeight="480" disable_init_js=true skeletonPlaceholders=true show_dark=true >}}
405
+ ```html
419
406
 
420
407
  <div class="fixed bottom-0 left-0 z-50 grid w-full h-24 grid-cols-1 px-8 bg-neutral-primary-soft border-t border-default md:grid-cols-3">
421
408
  <div class="items-center justify-center hidden me-auto md:flex">
@@ -510,4 +497,4 @@ Use this component to show control buttons for a video or audio that is playing
510
497
  </div>
511
498
  </div>
512
499
  </div>
513
- {{< /example >}}
500
+ ```
@@ -1,16 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Breadcrumbs - Flowbite
4
- description: Show the location of the current page in a hierarchical structure using the Tailwind CSS breadcrumb components
5
- group: components
6
- toc: true
7
-
8
- previous: Bottom Navigation
9
- previousLink: components/bottom-navigation/
10
- next: Buttons
11
- nextLink: components/buttons/
12
- ---
13
-
14
1
  The breadcrumb component is an important part of any website or application that can be used to show the current location of a page in a hierarchical structure of pages.
15
2
 
16
3
  Flowbite includes two styles of breadcrumb elements, one that has a transparent background and a few more that come with a background in different colors.
@@ -19,7 +6,7 @@ Flowbite includes two styles of breadcrumb elements, one that has a transparent
19
6
 
20
7
  Use the following breadcrumb example to show the hierarchical structure of pages.
21
8
 
22
- {{< example class="flex justify-center" github="components/breadcrumb.md" show_dark=true >}}
9
+ ```html
23
10
 
24
11
  <nav class="flex" aria-label="Breadcrumb">
25
12
  <ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
@@ -43,13 +30,13 @@ Use the following breadcrumb example to show the hierarchical structure of pages
43
30
  </li>
44
31
  </ol>
45
32
  </nav>
46
- {{< /example >}}
33
+ ```
47
34
 
48
35
  ## Solid background
49
36
 
50
37
  You can alternatively also use the breadcrumb components with a solid background.
51
38
 
52
- {{< example class="flex justify-center" github="components/breadcrumb.md" show_dark=true >}}
39
+ ```html
53
40
 
54
41
  <!-- Breadcrumb -->
55
42
  <nav class="flex p-3 bg-neutral-secondary-medium border border-default-medium rounded-base" aria-label="Breadcrumb">
@@ -74,13 +61,13 @@ You can alternatively also use the breadcrumb components with a solid background
74
61
  </li>
75
62
  </ol>
76
63
  </nav>
77
- {{< /example >}}
64
+ ```
78
65
 
79
66
  ## Header breadcrumb
80
67
 
81
68
  Use this example to show a list of items such as the branches from GitHub and a dropdown component.
82
69
 
83
- {{< example class="flex justify-center pb-48" github="components/breadcrumb.md" show_dark=true >}}
70
+ ```html
84
71
 
85
72
  <!-- Breadcrumb -->
86
73
  <nav class="flex-warp md:flex justify-between" aria-label="Breadcrumb">
@@ -124,13 +111,13 @@ Use this example to show a list of items such as the branches from GitHub and a
124
111
  </div>
125
112
  </div>
126
113
  </nav>
127
- {{< /example >}}
114
+ ```
128
115
 
129
116
  ## Breadcrumb with dropdown
130
117
 
131
118
  Use this example to show dropdown components inside the breadcrumbs.
132
119
 
133
- {{< example class="flex justify-center pb-48" github="components/breadcrumb.md" show_dark=true >}}
120
+ ```html
134
121
 
135
122
  <!-- Breadcrumb -->
136
123
  <nav class="flex justify-between" aria-label="Breadcrumb">
@@ -182,13 +169,13 @@ Use this example to show dropdown components inside the breadcrumbs.
182
169
  </li>
183
170
  </ol>
184
171
  </nav>
185
- {{< /example >}}
172
+ ```
186
173
 
187
174
  ## Breadcrumb with button
188
175
 
189
176
  Use a button with dropdown as the current page in a breadcrumb component.
190
177
 
191
- {{< example class="flex justify-center pb-48" github="components/breadcrumb.md" show_dark=true >}}
178
+ ```html
192
179
 
193
180
  <nav class="flex" aria-label="Breadcrumb">
194
181
  <ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
@@ -230,14 +217,14 @@ Use a button with dropdown as the current page in a breadcrumb component.
230
217
  </ul>
231
218
  </div>
232
219
  </nav>
233
- {{< /example >}}
220
+ ```
234
221
 
235
222
 
236
223
  ## Breadcrumb with navigation
237
224
 
238
225
  Use this example to navigate between pages with a button group component next to the breadcrumbs.
239
226
 
240
- {{< example class="flex justify-center pb-48" github="components/breadcrumb.md" show_dark=true >}}
227
+ ```html
241
228
 
242
229
  <nav class="flex" aria-label="Breadcrumb">
243
230
  <div class="inline-flex shadow-xs -space-x-px me-2.5" role="group">
@@ -269,5 +256,5 @@ Use this example to navigate between pages with a button group component next to
269
256
  </li>
270
257
  </ol>
271
258
  </nav>
272
- {{< /example >}}
259
+ ```
273
260