115 Components
Mega Menu
NavigationKinetic multi-column navigation mega menu featuring spring category tabs, directional sliding content panels, interactive feature cards, and quick link references.
NewMulti-columnInteractiveA11y Ready
Installation
Install directly into your project using the shadcn CLI or copy the source code manually.
Requires:framer-motionlucide-reactclsxtailwind-merge
$npx shadcn@latest add "https://boseui.site/r/mega-menu.json"
Props
TypeScript props supported by <MegaMenu />.
| Prop | Type | Default | Description |
|---|---|---|---|
| categories | MegaMenuCategory[] | DEFAULT_CATEGORIES | Array of categorized mega menu sections containing items and featured cards. |
| activeCategory | string | — | Controlled identifier for the currently active tab category. |
| triggerLabel | string | "Explore Platform" | Text label displayed on the mega menu activator button. |
| onCategoryChange | (categoryId: string) => void | — | Callback invoked when the active tab category changes. |
Key Features
- Shared layoutId active category pill for frictionless tab switching with spring physics.
- Direction-aware horizontal sliding content transitions between categories.
- Rich multi-column layout with feature cards, icon badges, descriptions, and CTA banners.
- Quick links rail for documentation, GitHub, and community shortcuts.
- Click outside and Escape key auto-dismissal.
Keyboard & Accessibility
- Accessible trigger button with aria-haspopup='true' and aria-expanded state.
- Full keyboard navigation and auto-focus retention.
- Instant fallback transitions when prefers-reduced-motion is active.