Components · Navigation
Navigation Menu
StableAdded v0.0.1
Site navigation links with flyout panels, built on Radix.
import { NavigationMenu } from '@nexub/react';Usage
Use it for
Marketing or docs sites whose sections need a flyout of links
Use something else for
Actions: use `DropdownMenu` or `Menubar`
App navigation without flyouts: use `TopNav` or `Sidebar`
Examples
Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| NavigationMenu.Root | compound | — | The <nav> (value, onValueChange, delayDuration). Renders the panel viewport for you. |
| NavigationMenu.List / Item | compound | — | The list of top-level entries. |
| NavigationMenu.Trigger | compound | — | Opens the item’s panel on hover or click. |
| NavigationMenu.Content | compound | — | The flyout panel for an item. |
| NavigationMenu.Link | compound | — | A link, top-level or inside a panel (href, active, asChild for router links). |
| NavigationMenu.Indicator | compound | — | Optional arrow under the open trigger. |
Accessibility
Keyboard
- Tab
Moves between top-level entries.
- Enter / Space
Opens or closes a panel.
- Escape
Closes the panel and returns focus to its trigger.
Notes
Give `NavigationMenu.Root` an `aria-label` when the page has more than one navigation landmark.
On iOS & Android
Web only
Navigation Menu has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.