NavigationMega Menu Navbar
Mega Menu Navbar
Full-featured mega menu navbar with animated underline, slide-down panels, and mobile slide-out menu using GSAP.
Installation
$ npx @nehal712521/inprogress add
Usage
import { MegaNavbar } from "@/components/ui/";
export default function Page() {
const navItems = [
{ label: "Home", href: "/" },
{ label: "Products", href: "/products" },
{ label: "Resources", href: "/resources" },
{ label: "Pricing", href: "/pricing" },
];
const megaMenu = [
{
title: "Products",
description: "Explore our suite of tools",
items: [
{ label: "Analytics", href: "/products/analytics" },
{ label: "Dashboard", href: "/products/dashboard" },
]
}
];
return (
<MegaNavbar
items={navItems}
megaMenu={megaMenu}
ctaButton={{ label: "Get Started", href: "/signup" }}
/>
);
}Props
| Prop | Type | Default |
|---|---|---|
| items | NavItem[] | Default items |
| megaMenu | MegaMenuItem[] | Default menu |
| logo | ReactNode | Sparkles icon + text |
| ctaButton | { label, href } | undefined |
| className | string | "" |
Features
Mega Menu
Full-width dropdown panel with sections
Animated Underline
Sliding underline follows active item
Slide-out Mobile Menu
Full-height mobile menu from right
GSAP Animations
Staggered entry and smooth transitions