ThiloDesign System
DV

Navigation Menu

shadcn/ui

Horizontal top-level menu with mega-menu panels. For marketing sites or app top bars with many destinations.

@/components/ui/navigation-menu

Mega menu — hover to open panels

In context — app top navigation bar

Page content area

Item types

TypeExample codeUsage
Trigger + content<NavigationMenuTrigger>Products</NavigationMenuTrigger><NavigationMenuContent>...</NavigationMenuContent>Multi-item section with a dropdown panel
Plain link<NavigationMenuLink className="px-3 py-1.5 text-sm">Pricing</NavigationMenuLink>Single destination — no dropdown
Link inside panel<NavigationMenuLink className="block rounded-md p-3 hover:bg-accent">...</NavigationMenuLink>Destination row inside an open content panel

Sub-components

ComponentRole
NavigationMenuRoot — manages open/close and keyboard navigation between triggers
NavigationMenuListHorizontal list of top-level menu items
NavigationMenuItemWrapper for each menu entry — trigger + content pair
NavigationMenuTriggerButton that opens the dropdown panel on hover/click
NavigationMenuContentDropdown panel — absolutely positioned below the trigger
NavigationMenuLinkIndividual link inside the content panel — handles active state

On this page