Navigation Menu
Site navigation with panels of links.
Installation
pnpm dlx shadcn@latest add @paneui/navigation-menuUsage
Composition
Examples
Motion
One popup is shared by every panel: it resizes and the panels slide in from the side the pointer came from. Under reduced motion it only fades.
Links
Use render on NavigationMenuLink for your router's link. The first span is the title and the second the muted line; active marks the current page.
API Reference
Built on the Navigation Menu primitive. Only the props this library adds or changes are listed; everything else passes through.
NavigationMenu
Root plus the shared popup. Also accepts every prop of NavigationMenu.Root.
NavigationMenuTrigger
Adds the chevron. Also accepts every prop of NavigationMenu.Trigger.
NavigationMenuContent
A panel; size it with className. Also accepts every prop of NavigationMenu.Content.
NavigationMenuLink
Also accepts every prop of NavigationMenu.Link.
- variant= "panel"
- "panel" | "trigger" | "tab"
triggerstyles a top-level link like a trigger;tabis a full-height header section link with a 2px bar under theactiveone.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "panel" | "trigger" | "tab" | "panel" | trigger styles a top-level link like a trigger; tab is a full-height header section link with a 2px bar under the active one. |
NavigationMenuList
Also accepts every prop of NavigationMenu.List.
NavigationMenuItem
Also accepts every prop of NavigationMenu.Item.