115 Components

Mega Menu

Navigation

Kinetic multi-column navigation mega menu featuring spring category tabs, directional sliding content panels, interactive feature cards, and quick link references.

NewMulti-columnInteractiveA11y Ready
/r/mega-menu.json

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 />.

4 props
PropTypeDefaultDescription
categoriesMegaMenuCategory[]DEFAULT_CATEGORIESArray of categorized mega menu sections containing items and featured cards.
activeCategorystring—Controlled identifier for the currently active tab category.
triggerLabelstring"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.