Navigation Menu
A collection of links for navigating websites, with support for dropdown menus.
Usage
Features
Four ways to mark the current page — subtle(default),pill,underlineandoutline— set once withvariantonvolt-navigation-menu; links and triggers inherit it.layout="contained"draws a self-sized, bordered surface for a centred or floating bar;inline(default) sits inside your own header. Both work with every variant.activemarks the current destination witharia-current="page". An open submenu is a separate state (aria-expanded) and looks the same in every variant.- Keyboard navigation with Arrow keys and Escape
- Accessible with proper ARIA attributes
- Flexible content layouts (single column, multi-column)
- The menu owns links, submenus and their states. The logo, account menu and mobile shell belong to your header — the navbar blocks in Volt UI Recipes show complete compositions.
API Reference
VoltNavigationMenuContentItem — volt-navigation-menu-content-item
| Input | Type | Default |
|---|---|---|
| class | string | '' |
| disabled | boolean | false |
VoltNavigationMenuContent — volt-navigation-menu-content
| Input | Type | Default |
|---|---|---|
| class | string | '' |
| orientation | 'vertical' | 'horizontal' | 'vertical' |
| wrap | boolean | false |
VoltNavigationMenuItem — volt-navigation-menu-item
| Input | Type | Default |
|---|---|---|
| class | string | '' |
| value | string | — |
VoltNavigationMenuLink — a[voltNavigationMenuLink]
| Input | Type | Default |
|---|---|---|
| class | string | '' |
| active | boolean | false |
| current | VoltNavigationMenuCurrent | 'page' |
| disabled | boolean | false |
VoltNavigationMenuList — volt-navigation-menu-list
| Input | Type | Default |
|---|---|---|
| class | string | '' |
| wrap | boolean | false |
VoltNavigationMenuTrigger — volt-navigation-menu-trigger
| Input | Type | Default |
|---|---|---|
| class | string | '' |
| content * | NgpOverlayContent<unknown> | — |
| placement | NavigationMenuPlacement | 'bottom-start' |
| offset | number | 4 |
| flip | boolean | true |
| disabled | boolean | false |
| cooldown | number | 300 |
VoltNavigationMenu — volt-navigation-menu
| Input | Type | Default |
|---|---|---|
| class | string | '' |
| variant | VoltNavigationMenuVariant | 'subtle' |
| layout | VoltNavigationMenuLayout | 'inline' |
| orientation | 'horizontal' | 'vertical' | 'horizontal' |
| showDelay | number | 200 |
| hideDelay | number | 150 |
| value | string | null | null |
| Output | Type |
|---|---|
| valueChange | string | null |
CVA variants
| Prop | Options | Default |
|---|---|---|
| layout | inline | contained | inline |
| variant | subtle | pill | underline | outline | subtle |
Component Source
Install via CLI:
npx @voltui/cli add navigation-menuTypeScript
Loading editor…
Copy this code to your project. The component uses ng-primitives/navigation-menu, class-variance-authority.