Skip to content

NavigationMenu

<ax-navigation-menu> is a horizontal nav whose items open rich mega-menu panels. Only one panel is open at a time. Each <ax-navigation-menu-item> has a value + label trigger and projects a <ax-navigation-menu-content> panel. An animated highlight backdrop follows the hovered (or open) trigger; tune it with CSS variables on the host or an ancestor.

import {
AxNavigationMenuComponent,
AxNavigationMenuItemComponent,
AxNavigationMenuContentComponent,
} from '@axisui-ng/navigation';
<ax-navigation-menu [(value)]="open">
<ax-navigation-menu-item value="products" label="Products">
<ax-navigation-menu-content>
<div class="grid w-64 gap-1">
<a href="/analytics">Analytics</a>
<a href="/automation">Automation</a>
</div>
</ax-navigation-menu-content>
</ax-navigation-menu-item>
<ax-navigation-menu-item value="company" label="Company">
<ax-navigation-menu-content>
<a href="/about">About</a>
</ax-navigation-menu-content>
</ax-navigation-menu-item>
</ax-navigation-menu>
InputTypeDefaultNotes
valuemodel<string | null>nullValue of the open item (null = all closed).
InputTypeDefaultNotes
valuestring (required)Identifies the item / its panel.
labelstring''Trigger button text.
InputTypeDefaultNotes
No public inputs. Project panel content; the item attaches it as an overlay.
SlotNotes
ax-navigation-menu-item (on ax-navigation-menu)Top-level triggers.
ax-navigation-menu-content (on ax-navigation-menu-item)Required mega-menu panel template.

Set on the host or an ancestor:

CSS variableDefaultNotes
--navigation-menu-backdrop-colortheme accentBackdrop fill.
--navigation-menu-animation-duration200msTransition duration (0ms disables).
--navigation-menu-animation-easingease-outTransition easing.

Honors prefers-reduced-motion: reduce (backdrop transition disabled).

Host is role="navigation". Triggers expose aria-expanded. Only one panel is open at a time; Escape or an outside pointer closes it. The highlight backdrop is decorative (aria-hidden).

Interactive examples live in Storybook under Navigation / Navigation Menu. Run pnpm storybook to explore them.