Layout/Navigation Menu
Navigation Menu
A horizontal top-nav menu where items can reveal a dropdown panel of sub-links. Wraps responsively on narrow viewports.
import { NavigationMenu } from "@animui/ui"Basic
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | NavigationMenuItem[] | — | Top-level menu items. Items with children render a dropdown on click. |
className | string | — | Additional classes for the nav container. |
Accessibility
- ✓Dropdown triggers expose
aria-expanded. - ✓Dropdown panels close on
Escapeor on an outside click. - ✓Wraps onto multiple lines instead of overflowing on small screens.