Mega Menu Component
A simple, dark mode e-commerce mega menu component with a grayscale color scheme, built using Tailwind CSS. It is responsive and includes support for dark theme using Tailwind's dark: prefix.
HTML Code
<nav class="bg-gray-950 text-white p-4">
<div class="container mx-auto flex justify-between items-center">
<a href="#" class="text-2xl font-bold">ShopName</a>
<div class="hidden md:flex space-x-6">
<div class="relative group">
<button class="hover:text-gray-300">Categories</button>
<div class="absolute hidden group-hover:block bg-gray-900 shadow-lg mt-2 p-4 rounded-md w-48">
<a href="#" class="block py-2 hover:bg-gray-800">Electronics</a>
<a href="#" class="block py-2 hover:bg-gray-800">Apparel</a>
<a href="#" class="block py-2 hover:bg-gray-800">Home Goods</a>
</div>
</div>
<a href="#" class="hover:text-gray-300">New Arrivals</a>
<a href="#" class="hover:text-gray-300">Sales</a>
<a href="#" class="hover:text-gray-300">Contact</a>
</div>
<div class="md:hidden">
<button class="text-white focus:outline-none">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7"></path>
</svg>
</button>
</div>
</div>
</nav>
Related Components
ArtDeco_SaaS_MegaMenu
A simple, responsive mega menu component designed with an Art Deco aesthetic, using a purple/violet color scheme, suitable for Technology/SaaS applications. Includes dark mode support.
Mega Menu Component
A responsive Mega Menu Component designed with Tailwind CSS, featuring microinteractions for engaging animations and dark theme support.
Glassmorphism_Pastel_Mega_Menu
A simple, responsive mega menu component with a glassmorphism design, pastel color scheme, and dark mode support, suitable for dashboard navigation. Features frosted, translucent elements with blur effects.