flowbite-mcp 1.0.0

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 (77) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +324 -0
  3. package/build/index.js +975 -0
  4. package/build/server-runner.js +228 -0
  5. package/data/components/accordion.md +860 -0
  6. package/data/components/alerts.md +739 -0
  7. package/data/components/avatar.md +178 -0
  8. package/data/components/badge.md +420 -0
  9. package/data/components/banner.md +145 -0
  10. package/data/components/bottom-navigation.md +513 -0
  11. package/data/components/breadcrumb.md +273 -0
  12. package/data/components/button-group.md +410 -0
  13. package/data/components/buttons.md +405 -0
  14. package/data/components/card.md +711 -0
  15. package/data/components/carousel.md +858 -0
  16. package/data/components/chat-bubble.md +1063 -0
  17. package/data/components/clipboard.md +1029 -0
  18. package/data/components/datepicker.md +673 -0
  19. package/data/components/device-mockups.md +152 -0
  20. package/data/components/drawer.md +1353 -0
  21. package/data/components/dropdowns.md +1925 -0
  22. package/data/components/footer.md +299 -0
  23. package/data/components/forms.md +371 -0
  24. package/data/components/gallery.md +322 -0
  25. package/data/components/indicators.md +262 -0
  26. package/data/components/jumbotron.md +213 -0
  27. package/data/components/kbd.md +217 -0
  28. package/data/components/list-group.md +365 -0
  29. package/data/components/mega-menu.md +558 -0
  30. package/data/components/modal.md +1309 -0
  31. package/data/components/navbar.md +1053 -0
  32. package/data/components/pagination.md +472 -0
  33. package/data/components/popover.md +826 -0
  34. package/data/components/progress.md +95 -0
  35. package/data/components/qr-code.md +280 -0
  36. package/data/components/rating.md +323 -0
  37. package/data/components/sidebar.md +1067 -0
  38. package/data/components/skeleton.md +221 -0
  39. package/data/components/speed-dial.md +1270 -0
  40. package/data/components/spinner.md +222 -0
  41. package/data/components/stepper.md +271 -0
  42. package/data/components/tables.md +3127 -0
  43. package/data/components/tabs.md +808 -0
  44. package/data/components/timeline.md +304 -0
  45. package/data/components/toast.md +341 -0
  46. package/data/components/tooltips.md +524 -0
  47. package/data/components/typography.md +269 -0
  48. package/data/components/video.md +95 -0
  49. package/data/forms/checkbox.md +375 -0
  50. package/data/forms/file-input.md +98 -0
  51. package/data/forms/floating-label.md +185 -0
  52. package/data/forms/input-field.md +222 -0
  53. package/data/forms/number-input.md +1099 -0
  54. package/data/forms/phone-input.md +577 -0
  55. package/data/forms/radio.md +315 -0
  56. package/data/forms/range.md +83 -0
  57. package/data/forms/search-input.md +280 -0
  58. package/data/forms/select.md +259 -0
  59. package/data/forms/textarea.md +155 -0
  60. package/data/forms/timepicker.md +732 -0
  61. package/data/forms/toggle.md +176 -0
  62. package/data/plugins/charts.md +2683 -0
  63. package/data/plugins/datatables.md +1922 -0
  64. package/data/plugins/datepicker.md +5 -0
  65. package/data/plugins/wysiwyg.md +2377 -0
  66. package/data/quickstart.md +169 -0
  67. package/data/theme.md +231 -0
  68. package/data/toc.md +79 -0
  69. package/data/typography/blockquote.md +182 -0
  70. package/data/typography/headings.md +174 -0
  71. package/data/typography/hr.md +74 -0
  72. package/data/typography/images.md +168 -0
  73. package/data/typography/links.md +118 -0
  74. package/data/typography/lists.md +387 -0
  75. package/data/typography/paragraphs.md +186 -0
  76. package/data/typography/text.md +249 -0
  77. package/package.json +71 -0
@@ -0,0 +1,558 @@
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
+ 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
+
17
+ 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.
18
+
19
+ ## Default mega menu
20
+
21
+ Use this example to show a list of links aligned on three columns inside the mega menu dropdown.
22
+
23
+ {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="300" >}}
24
+
25
+ <nav class="bg-neutral-primary border-default">
26
+ <div class="flex flex-wrap items-center justify-between max-w-screen-xl mx-auto p-4">
27
+ <a href="https://flowbite.com" class="flex items-center space-x-3 rtl:space-x-reverse">
28
+ <img src="https://flowbite.com/docs/images/logo.svg" class="h-7" alt="Flowbite Logo" />
29
+ <span class="self-center text-xl font-semibold whitespace-nowrap text-heading">Flowbite</span>
30
+ </a>
31
+ <div class="flex items-center md:order-2 space-x-1 md:space-x-2 rtl:space-x-reverse">
32
+ <a href="#" class="text-heading bg-neutral-primary box-border border border-transparent hover:bg-neutral-secondary-medium focus:ring-4 focus:ring-neutral-tertiary-soft font-medium leading-5 rounded-base text-sm px-3 py-2 focus:outline-none">Login</a>
33
+ <a href="#" class="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-3 py-2 focus:outline-none">Sign Up</a>
34
+ <button data-collapse-toggle="mega-menu" type="button" class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-body rounded-lg md:hidden hover:bg-neutral-secondary-soft hover:text-heading focus:outline-none focus:ring-2 focus:ring-default" aria-controls="mega-menu" aria-expanded="false">
35
+ <span class="sr-only">Open main menu</span>
36
+ <svg class="w-6 h-6" 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="M5 7h14M5 12h14M5 17h14"/></svg>
37
+ </button>
38
+ </div>
39
+ <div id="mega-menu" class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1">
40
+ <ul class="flex flex-col mt-4 font-medium md:flex-row md:mt-0 md:space-x-8 rtl:space-x-reverse">
41
+ <li>
42
+ <a href="#" class="block py-2 px-3 text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0" aria-current="page">Home</a>
43
+ </li>
44
+ <li>
45
+ <button id="mega-menu-dropdown-button" data-dropdown-toggle="mega-menu-dropdown" class="flex items-center justify-between w-full py-2 px-3 font-medium text-heading border-b border-light md:w-auto hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">
46
+ Company
47
+ <svg class="w-4 h-4 ms-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="m19 9-7 7-7-7"/></svg>
48
+ </button>
49
+ <div id="mega-menu-dropdown" class="absolute z-10 grid hidden w-auto grid-cols-2 text-sm bg-neutral-primary-soft border border-default rounded-base shadow md:grid-cols-3">
50
+ <div class="p-4 pb-0 text-heading md:pb-4">
51
+ <ul class="space-y-3" aria-labelledby="mega-menu-dropdown-button">
52
+ <li>
53
+ <a href="#" class="text-body hover:text-fg-brand">
54
+ About Us
55
+ </a>
56
+ </li>
57
+ <li>
58
+ <a href="#" class="text-body hover:text-fg-brand">
59
+ Library
60
+ </a>
61
+ </li>
62
+ <li>
63
+ <a href="#" class="text-body hover:text-fg-brand">
64
+ Resources
65
+ </a>
66
+ </li>
67
+ <li>
68
+ <a href="#" class="text-body hover:text-fg-brand">
69
+ Pro Version
70
+ </a>
71
+ </li>
72
+ </ul>
73
+ </div>
74
+ <div class="p-4 pb-0 md:pb-4">
75
+ <ul class="space-y-3">
76
+ <li>
77
+ <a href="#" class="text-body hover:text-fg-brand">
78
+ Blog
79
+ </a>
80
+ </li>
81
+ <li>
82
+ <a href="#" class="text-body hover:text-fg-brand">
83
+ Newsletter
84
+ </a>
85
+ </li>
86
+ <li>
87
+ <a href="#" class="text-body hover:text-fg-brand">
88
+ Playground
89
+ </a>
90
+ </li>
91
+ <li>
92
+ <a href="#" class="text-body hover:text-fg-brand">
93
+ License
94
+ </a>
95
+ </li>
96
+ </ul>
97
+ </div>
98
+ <div class="p-4">
99
+ <ul class="space-y-3">
100
+ <li>
101
+ <a href="#" class="text-body hover:text-fg-brand">
102
+ Contact Us
103
+ </a>
104
+ </li>
105
+ <li>
106
+ <a href="#" class="text-body hover:text-fg-brand">
107
+ Support Center
108
+ </a>
109
+ </li>
110
+ <li>
111
+ <a href="#" class="text-body hover:text-fg-brand">
112
+ Terms
113
+ </a>
114
+ </li>
115
+ </ul>
116
+ </div>
117
+ </div>
118
+ </li>
119
+ <li>
120
+ <a href="#" class="block py-2 px-3 text-heading border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Team</a>
121
+ </li>
122
+ <li>
123
+ <a href="#" class="block py-2 px-3 text-heading border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Contact</a>
124
+ </li>
125
+ </ul>
126
+ </div>
127
+ </div>
128
+ </nav>
129
+ {{< /example >}}
130
+
131
+ ## Mega menu with icons
132
+
133
+ This example of a mega menu dropdown can be used to also show an icon near the text of the link.
134
+
135
+ {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="300" >}}
136
+
137
+ <nav class="bg-neutral-primary border-default">
138
+ <div class="flex flex-wrap items-center justify-between max-w-screen-xl mx-auto p-4">
139
+ <a href="https://flowbite.com" class="flex items-center space-x-3 rtl:space-x-reverse">
140
+ <img src="https://flowbite.com/docs/images/logo.svg" class="h-7" alt="Flowbite Logo" />
141
+ <span class="self-center text-xl font-semibold whitespace-nowrap text-heading">Flowbite</span>
142
+ </a>
143
+ <div class="flex items-center md:order-2 space-x-1 md:space-x-2 rtl:space-x-reverse">
144
+ <a href="#" class="text-heading bg-neutral-primary box-border border border-transparent hover:bg-neutral-secondary-medium focus:ring-4 focus:ring-neutral-tertiary-soft font-medium leading-5 rounded-base text-sm px-3 py-2 focus:outline-none">Login</a>
145
+ <a href="#" class="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-3 py-2 focus:outline-none">Sign Up</a>
146
+ <button data-collapse-toggle="mega-menu-icons" type="button" class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-body rounded-lg md:hidden hover:bg-neutral-secondary-soft hover:text-heading focus:outline-none focus:ring-2 focus:ring-default" aria-controls="mega-menu-icons" aria-expanded="false">
147
+ <span class="sr-only">Open main menu</span>
148
+ <svg class="w-6 h-6" 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="M5 7h14M5 12h14M5 17h14"/></svg>
149
+ </button>
150
+ </div>
151
+ <div id="mega-menu-icons" class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1">
152
+ <ul class="flex flex-col mt-4 font-medium md:flex-row md:mt-0 md:space-x-8 rtl:space-x-reverse">
153
+ <li>
154
+ <a href="#" class="block py-2 px-3 text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0" aria-current="page">Home</a>
155
+ </li>
156
+ <li>
157
+ <button id="mega-menu-icons-dropdown-button" data-dropdown-toggle="mega-menu-icons-dropdown" class="flex items-center justify-between w-full py-2 px-3 font-medium text-heading border-b border-light md:w-auto hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">
158
+ Company
159
+ <svg class="w-4 h-4 ms-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="m19 9-7 7-7-7"/></svg>
160
+ </button>
161
+ <div id="mega-menu-icons-dropdown" class="absolute z-10 grid hidden w-auto grid-cols-2 text-sm bg-neutral-primary-soft border border-default rounded-base shadow md:grid-cols-3">
162
+ <div class="p-4 pb-0 text-heading md:pb-4">
163
+ <ul class="space-y-3 font-normal" aria-labelledby="mega-menu-icons-dropdown-button">
164
+ <li>
165
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
166
+ <svg class="w-4 h-4 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="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
167
+ About Us
168
+ </a>
169
+ </li>
170
+ <li>
171
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
172
+ <svg class="w-4 h-4 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 6.03v13m0-13c-2.819-.831-4.715-1.076-8.029-1.023A.99.99 0 0 0 3 6v11c0 .563.466 1.014 1.03 1.007 3.122-.043 5.018.212 7.97 1.023m0-13c2.819-.831 4.715-1.076 8.029-1.023A.99.99 0 0 1 21 6v11c0 .563-.466 1.014-1.03 1.007-3.122-.043-5.018.212-7.97 1.023"/></svg>
173
+ Library
174
+ </a>
175
+ </li>
176
+ <li>
177
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
178
+ <svg class="w-4 h-4 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 11H4m15.5 5a.5.5 0 0 0 .5-.5V8a1 1 0 0 0-1-1h-3.75a1 1 0 0 1-.829-.44l-1.436-2.12a1 1 0 0 0-.828-.44H8a1 1 0 0 0-1 1M4 9v10a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1h-3.75a1 1 0 0 1-.829-.44L9.985 8.44A1 1 0 0 0 9.157 8H5a1 1 0 0 0-1 1Z"/></svg>
179
+ Resources
180
+ </a>
181
+ </li>
182
+ <li>
183
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
184
+ <svg class="w-4 h-4 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="m10.051 8.102-3.778.322-1.994 1.994a.94.94 0 0 0 .533 1.6l2.698.316m8.39 1.617-.322 3.78-1.994 1.994a.94.94 0 0 1-1.595-.533l-.4-2.652m8.166-11.174a1.366 1.366 0 0 0-1.12-1.12c-1.616-.279-4.906-.623-6.38.853-1.671 1.672-5.211 8.015-6.31 10.023a.932.932 0 0 0 .162 1.111l.828.835.833.832a.932.932 0 0 0 1.111.163c2.008-1.102 8.35-4.642 10.021-6.312 1.475-1.478 1.133-4.77.855-6.385Zm-2.961 3.722a1.88 1.88 0 1 1-3.76 0 1.88 1.88 0 0 1 3.76 0Z"/></svg>
185
+ Pro Version
186
+ </a>
187
+ </li>
188
+ </ul>
189
+ </div>
190
+ <div class="p-4 pb-0 md:pb-4">
191
+ <ul class="space-y-3 font-normal">
192
+ <li>
193
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
194
+ <svg class="w-4 h-4 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="M10 3v4a1 1 0 0 1-1 1H5m4 8h6m-6-4h6m4-8v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1Z"/></svg>
195
+ Blog
196
+ </a>
197
+ </li>
198
+ <li>
199
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
200
+ <svg class="w-4 h-4 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="M11 16v-5.5A3.5 3.5 0 0 0 7.5 7m3.5 9H4v-5.5A3.5 3.5 0 0 1 7.5 7m3.5 9v4M7.5 7H14m0 0V4h2.5M14 7v3m-3.5 6H20v-6a3 3 0 0 0-3-3m-2 9v4m-8-6.5h1"/></svg>
201
+ Newsletter
202
+ </a>
203
+ </li>
204
+ <li>
205
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
206
+ <svg class="w-4 h-4 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-linejoin="round" stroke-width="2" d="M4.07141 14v6h5.99999v-6H4.07141Zm4.5-4h6.99999l-3.5-6-3.49999 6Zm7.99999 10c1.933 0 3.5-1.567 3.5-3.5s-1.567-3.5-3.5-3.5-3.5 1.567-3.5 3.5 1.567 3.5 3.5 3.5Z"/></svg>
207
+ Playground
208
+ </a>
209
+ </li>
210
+ <li>
211
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
212
+ <svg class="w-4 h-4 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="M5.5 21h13M12 21V7m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm2-1.8c3.073.661 2.467 2.8 5 2.8M5 8c3.359 0 2.192-2.115 5.012-2.793M7 9.556V7.75m0 1.806-1.95 4.393a.773.773 0 0 0 .37.962.785.785 0 0 0 .362.089h2.436a.785.785 0 0 0 .643-.335.776.776 0 0 0 .09-.716L7 9.556Zm10 0V7.313m0 2.243-1.95 4.393a.773.773 0 0 0 .37.962.786.786 0 0 0 .362.089h2.436a.785.785 0 0 0 .643-.335.775.775 0 0 0 .09-.716L17 9.556Z"/></svg>
213
+ License
214
+ </a>
215
+ </li>
216
+ </ul>
217
+ </div>
218
+ <div class="p-4">
219
+ <ul class="space-y-3 font-normal">
220
+ <li>
221
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
222
+ <svg class="w-4 h-4 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="M18.427 14.768 17.2 13.542a1.733 1.733 0 0 0-2.45 0l-.613.613a1.732 1.732 0 0 1-2.45 0l-1.838-1.84a1.735 1.735 0 0 1 0-2.452l.612-.613a1.735 1.735 0 0 0 0-2.452L9.237 5.572a1.6 1.6 0 0 0-2.45 0c-3.223 3.2-1.702 6.896 1.519 10.117 3.22 3.221 6.914 4.745 10.12 1.535a1.601 1.601 0 0 0 0-2.456Z"/></svg>
223
+ Contact Us
224
+ </a>
225
+ </li>
226
+ <li>
227
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
228
+ <svg class="w-4 h-4 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="M9.529 9.988a2.502 2.502 0 1 1 5 .191A2.441 2.441 0 0 1 12 12.582V14m-.01 3.008H12M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
229
+ Support Center
230
+ </a>
231
+ </li>
232
+ <li>
233
+ <a href="#" class="inline-flex items-center text-body hover:text-fg-brand">
234
+ <svg class="w-4 h-4 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="M10 3v4a1 1 0 0 1-1 1H5m8-2h3m-3 3h3m-4 3v6m4-3H8M19 4v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1ZM8 12v6h8v-6H8Z"/></svg>
235
+ Terms
236
+ </a>
237
+ </li>
238
+ </ul>
239
+ </div>
240
+ </div>
241
+ </li>
242
+ <li>
243
+ <a href="#" class="block py-2 px-3 text-heading border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Team</a>
244
+ </li>
245
+ <li>
246
+ <a href="#" class="block py-2 px-3 text-heading border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Contact</a>
247
+ </li>
248
+ </ul>
249
+ </div>
250
+ </div>
251
+ </nav>
252
+ {{< /example >}}
253
+
254
+ ## Full width dropdown
255
+
256
+ Use this example to show a mega menu dropdown that spans the entire width of the document page.
257
+
258
+ {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="440" >}}
259
+
260
+ <nav class="bg-neutral-primary-soft border-default">
261
+ <div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl p-4">
262
+ <a href="https://flowbite.com" class="flex items-center space-x-3 rtl:space-x-reverse">
263
+ <img src="https://flowbite.com/docs/images/logo.svg" class="h-7" alt="Flowbite Logo" />
264
+ <span class="self-center text-xl font-semibold whitespace-nowrap text-heading">Flowbite</span>
265
+ </a>
266
+ <button data-collapse-toggle="mega-menu-full" type="button" class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-body rounded-lg md:hidden hover:bg-neutral-secondary-soft hover:text-heading focus:outline-none focus:ring-2 focus:ring-default" aria-controls="mega-menu-full" aria-expanded="false">
267
+ <span class="sr-only">Open main menu</span>
268
+ <svg class="w-6 h-6" 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="M5 7h14M5 12h14M5 17h14"/></svg>
269
+ </button>
270
+ <div id="mega-menu-full" class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1">
271
+ <ul class="flex flex-col mt-4 font-medium md:flex-row md:mt-0 md:space-x-8 rtl:space-x-reverse">
272
+ <li>
273
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0" aria-current="page">Home</a>
274
+ </li>
275
+ <li>
276
+ <button id="mega-menu-full-dropdown-button" data-collapse-toggle="mega-menu-full-dropdown" class="flex items-center justify-between w-full py-2 px-3 font-medium text-heading border-b border-light md:w-auto hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">
277
+ Company
278
+ <svg class="w-4 h-4 ms-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="m19 9-7 7-7-7"/></svg>
279
+ </button>
280
+ </li>
281
+ <li>
282
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Marketplace</a>
283
+ </li>
284
+ <li>
285
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Resources</a>
286
+ </li>
287
+ <li>
288
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Contact</a>
289
+ </li>
290
+ </ul>
291
+ </div>
292
+ </div>
293
+ <div id="mega-menu-full-dropdown" class="mt-1 bg-neutral-primary-soft border-default shadow-xs border-y">
294
+ <div class="grid max-w-screen-xl px-4 py-5 mx-auto text-heading sm:grid-cols-2 md:grid-cols-3 md:px-6">
295
+ <ul aria-labelledby="mega-menu-full-dropdown-button">
296
+ <li>
297
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
298
+ <div class="font-semibold">Online Stores</div>
299
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
300
+ </a>
301
+ </li>
302
+ <li>
303
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
304
+ <div class="font-semibold">Segmentation</div>
305
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
306
+ </a>
307
+ </li>
308
+ <li>
309
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
310
+ <div class="font-semibold">Marketing CRM</div>
311
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
312
+ </a>
313
+ </li>
314
+ </ul>
315
+ <ul>
316
+ <li>
317
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
318
+ <div class="font-semibold">Online Stores</div>
319
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
320
+ </a>
321
+ </li>
322
+ <li>
323
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
324
+ <div class="font-semibold">Segmentation</div>
325
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
326
+ </a>
327
+ </li>
328
+ <li>
329
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
330
+ <div class="font-semibold">Marketing CRM</div>
331
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
332
+ </a>
333
+ </li>
334
+ </ul>
335
+ <ul class="hidden md:block">
336
+ <li>
337
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
338
+ <div class="font-semibold">Audience Management</div>
339
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
340
+ </a>
341
+ </li>
342
+ <li>
343
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
344
+ <div class="font-semibold">Creative Tools</div>
345
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
346
+ </a>
347
+ </li>
348
+ <li>
349
+ <a href="#" class="block p-3 rounded-lg hover:bg-neutral-secondary-medium">
350
+ <div class="font-semibold">Marketing Automation</div>
351
+ <span class="text-sm text-body">Connect with third-party tools that you're already using.</span>
352
+ </a>
353
+ </li>
354
+ </ul>
355
+ </div>
356
+ </div>
357
+ </nav>
358
+ {{< /example >}}
359
+
360
+ ## Full width with CTA
361
+
362
+ This example can be used to also show a CTA button or link next to the menu items inside the dropdown.
363
+
364
+ {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="360" >}}
365
+
366
+ <nav class="bg-neutral-primary-soft border-default">
367
+ <div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl p-4">
368
+ <a href="https://flowbite.com" class="flex items-center space-x-3 rtl:space-x-reverse">
369
+ <img src="https://flowbite.com/docs/images/logo.svg" class="h-7" alt="Flowbite Logo" />
370
+ <span class="self-center text-xl font-semibold whitespace-nowrap text-heading">Flowbite</span>
371
+ </a>
372
+ <button data-collapse-toggle="mega-menu-full-cta" type="button" class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-body rounded-lg md:hidden hover:bg-neutral-secondary-soft hover:text-heading focus:outline-none focus:ring-2 focus:ring-default" aria-controls="mega-menu-full-cta" aria-expanded="false">
373
+ <span class="sr-only">Open main menu</span>
374
+ <svg class="w-6 h-6" 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="M5 7h14M5 12h14M5 17h14"/></svg>
375
+ </button>
376
+ <div id="mega-menu-full-cta" class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1">
377
+ <ul class="flex flex-col mt-4 font-medium md:flex-row md:mt-0 md:space-x-8 rtl:space-x-reverse">
378
+ <li>
379
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0" aria-current="page">Home</a>
380
+ </li>
381
+ <li>
382
+ <button id="mega-menu-full-cta-dropdown-button" data-collapse-toggle="mega-menu-full-cta-dropdown" data-dropdown-placement="bottom" class="flex items-center justify-between w-full py-2 px-3 font-medium text-heading border-b border-light md:w-auto hover:bg-neutral-secondary-soft hover:text-fg-brand md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">
383
+ Company
384
+ <svg class="w-4 h-4 ms-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="m19 9-7 7-7-7"/></svg>
385
+ </button>
386
+ </li>
387
+ <li>
388
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Marketplace</a>
389
+ </li>
390
+ <li>
391
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Resources</a>
392
+ </li>
393
+ <li>
394
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Contact</a>
395
+ </li>
396
+ </ul>
397
+ </div>
398
+ </div>
399
+ <div id="mega-menu-full-cta-dropdown" class="mt-1 bg-neutral-primary-soft border-default shadow-xs border-y">
400
+ <div class="grid max-w-screen-xl px-4 py-5 mx-auto text-sm text-body md:grid-cols-3 md:px-6">
401
+ <ul class="space-y-3 sm:mb-4 md:mb-0" aria-labelledby="mega-menu-full-cta-button">
402
+ <li>
403
+ <a href="#" class="hover:underline hover:text-fg-brand">
404
+ Online Stores
405
+ </a>
406
+ </li>
407
+ <li>
408
+ <a href="#" class="hover:underline hover:text-fg-brand">
409
+ Segmentation
410
+ </a>
411
+ </li>
412
+ <li>
413
+ <a href="#" class="hover:underline hover:text-fg-brand">
414
+ Marketing CRM
415
+ </a>
416
+ </li>
417
+ <li>
418
+ <a href="#" class="hover:underline hover:text-fg-brand">
419
+ Online Stores
420
+ </a>
421
+ </li>
422
+ </ul>
423
+ <ul class="hidden mb-4 space-y-3 md:mb-0 sm:block">
424
+ <li>
425
+ <a href="#" class="hover:underline hover:text-fg-brand">
426
+ Our Blog
427
+ </a>
428
+ </li>
429
+ <li>
430
+ <a href="#" class="hover:underline hover:text-fg-brand">
431
+ Terms & Conditions
432
+ </a>
433
+ </li>
434
+ <li>
435
+ <a href="#" class="hover:underline hover:text-fg-brand">
436
+ License
437
+ </a>
438
+ </li>
439
+ <li>
440
+ <a href="#" class="hover:underline hover:text-fg-brand">
441
+ Resources
442
+ </a>
443
+ </li>
444
+ </ul>
445
+ <div class="mt-4 md:mt-0">
446
+ <h2 class="mb-2.5 font-semibold text-heading">Our brands</h2>
447
+ <p class="mb-2.5 text-body">At Flowbite, we have a portfolio of brands that cater to a variety of preferences.</p>
448
+ <a href="#" class="inline-flex items-center text-sm font-medium text-fg-brand hover:underline">
449
+ Explore our brands
450
+ <span class="sr-only">Explore our brands </span>
451
+ <svg class="w-4 h-4 ms-1.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
452
+ </a>
453
+ </div>
454
+ </div>
455
+ </div>
456
+ </nav>
457
+ {{< /example >}}
458
+
459
+ ## Full width with image
460
+
461
+ 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
+
463
+ {{< example bodyClass="!p-0" github="components/mega-menu.md" show_dark=true iframeHeight="360" >}}
464
+
465
+ <nav class="bg-neutral-primary-soft border-default">
466
+ <div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl p-4">
467
+ <a href="https://flowbite.com" class="flex items-center space-x-3 rtl:space-x-reverse">
468
+ <img src="https://flowbite.com/docs/images/logo.svg" class="h-7" alt="Flowbite Logo" />
469
+ <span class="self-center text-xl font-semibold whitespace-nowrap text-heading">Flowbite</span>
470
+ </a>
471
+ <button data-collapse-toggle="mega-menu-full-image" type="button" class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-body rounded-lg md:hidden hover:bg-neutral-secondary-soft hover:text-heading focus:outline-none focus:ring-2 focus:ring-default" aria-controls="mega-menu-full-image" aria-expanded="false">
472
+ <span class="sr-only">Open main menu</span>
473
+ <svg class="w-6 h-6" 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="M5 7h14M5 12h14M5 17h14"/></svg>
474
+ </button>
475
+ <div id="mega-menu-full-image" class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1">
476
+ <ul class="flex flex-col mt-4 font-medium md:flex-row md:mt-0 md:space-x-8 rtl:space-x-reverse">
477
+ <li>
478
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0" aria-current="page">Home</a>
479
+ </li>
480
+ <li>
481
+ <button id="mega-menu-full-cta-image-button" data-collapse-toggle="mega-menu-full-image-dropdown" class="flex items-center justify-between w-full py-2 px-3 font-medium text-heading border-b border-light md:w-auto hover:bg-neutral-secondary-soft hover:text-fg-brand md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">
482
+ Company
483
+ <svg class="w-4 h-4 ms-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="m19 9-7 7-7-7"/></svg>
484
+ </button>
485
+ </li>
486
+ <li>
487
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Marketplace</a>
488
+ </li>
489
+ <li>
490
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Resources</a>
491
+ </li>
492
+ <li>
493
+ <a href="#" class="block py-2 px-3 text-heading hover:text-fg-brand border-b border-light hover:bg-neutral-secondary-soft md:hover:bg-transparent md:border-0 md:hover:text-fg-brand md:p-0">Contact</a>
494
+ </li>
495
+ </ul>
496
+ </div>
497
+ </div>
498
+ <div id="mega-menu-full-image-dropdown" class="mt-1 bg-neutral-primary-soft border-default shadow-xs border-y">
499
+ <div class="grid max-w-screen-xl px-4 py-5 mx-auto text-sm text-body md:grid-cols-3 md:px-6">
500
+ <ul class="hidden mb-4 space-y-4 md:mb-0 md:block" aria-labelledby="mega-menu-full-image-button">
501
+ <li>
502
+ <a href="#" class="hover:underline hover:text-fg-brand">
503
+ Online Stores
504
+ </a>
505
+ </li>
506
+ <li>
507
+ <a href="#" class="hover:underline hover:text-fg-brand">
508
+ Segmentation
509
+ </a>
510
+ </li>
511
+ <li>
512
+ <a href="#" class="hover:underline hover:text-fg-brand">
513
+ Marketing CRM
514
+ </a>
515
+ </li>
516
+ <li>
517
+ <a href="#" class="hover:underline hover:text-fg-brand">
518
+ Online Stores
519
+ </a>
520
+ </li>
521
+ </ul>
522
+ <ul class="mb-4 space-y-4 md:mb-0">
523
+ <li>
524
+ <a href="#" class="hover:underline hover:text-fg-brand">
525
+ Our Blog
526
+ </a>
527
+ </li>
528
+ <li>
529
+ <a href="#" class="hover:underline hover:text-fg-brand">
530
+ Terms & Conditions
531
+ </a>
532
+ </li>
533
+ <li>
534
+ <a href="#" class="hover:underline hover:text-fg-brand">
535
+ License
536
+ </a>
537
+ </li>
538
+ <li>
539
+ <a href="#" class="hover:underline hover:text-fg-brand">
540
+ Resources
541
+ </a>
542
+ </li>
543
+ </ul>
544
+ <a href="#" class="p-8 bg-local bg-dark bg-center bg-no-repeat bg-cover rounded-lg bg-blend-multiply" style="background-image: url(/docs/images/dashboard-overview.png)">
545
+ <p class="max-w-xl mb-5 font-medium leading-tight tracking-tight text-white">Preview the new Flowbite dashboard navigation.</p>
546
+ <button type="button" class="inline-flex items-center px-3 py-1.5 text-xs font-medium text-center text-white border border-white rounded-lg hover:bg-white hover:text-dark focus:ring-4 focus:outline-none">
547
+ Get started
548
+ <svg class="w-4 h-4 ms-1.5 -me-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
549
+ </button>
550
+ </a>
551
+ </div>
552
+ </div>
553
+ </nav>
554
+ {{< /example >}}
555
+
556
+ ## More examples
557
+
558
+ You can check out more mega menu examples on the [header components](https://flowbite.com/blocks/marketing/header/) page from Flowbite Blocks.