Navigation Menu
A responsive disclosure menu for primary navigation.
A responsive disclosure menu for primary navigation.
Backed by Base UI Navigation Menu for upstream behavior and configuration. Zenos owns the public API, styling, and composition shown on this page.
Import
Section titled “Import”import { NavigationMenu } from "@zentara-co/zenos-ui";Disclosure navigation
Section titled “Disclosure navigation”Triggers reveal grouped destinations inside the shared viewport. Direct links can sit beside disclosure items, and active marks the current destination.
Content uses a compact 20rem maximum width by default and remains constrained to the available viewport. Override className when a richer layout needs more space; the two-column example uses a 32rem maximum width.
Vertical orientation
Section titled “Vertical orientation”Vertical orientation is useful for compact account or section navigation that does not need popup content.
Custom styling
Section titled “Custom styling”Every compound part accepts className. Style the list, triggers, and direct links in place, then style NavigationMenu.Popup and NavigationMenu.Arrow separately because the disclosure viewport is portaled. Use data-popup-open and data-active for open and current-destination treatments while preserving the built-in focus and navigation behavior.
NavigationMenu.Root NavigationMenu.List NavigationMenu.Item NavigationMenu.Trigger NavigationMenu.Content NavigationMenu.Link NavigationMenu.Viewport NavigationMenu.Arrow
API
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | null | — | Controlled active menu value. |
defaultValue | string | null | — | Initial uncontrolled value. |
onValueChange | (value: string | null, eventDetails) => void | — | Runs when the active item changes. |
delay / closeDelay | number | — | Opening and closing delays. |
orientation | horizontal | vertical | horizontal | Menu axis. |
active | boolean | false | Marks a Link as the current destination. |
closeOnClick | boolean | — | Closes disclosure content after a Link is activated. |
indicator | ReactNode | false | — | Customizes or hides a Trigger disclosure icon. |
Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props,
including className, style, aria-*, and data-*.
Accessibility
Section titled “Accessibility”NavigationMenu renders a labelled navigation landmark and preserves native anchors for destinations. Base UI manages disclosure state, arrow-key movement, Escape dismissal, focus, and activation direction. Keep trigger labels short, use descriptive link text, and mark only the current destination as active. Reduced-motion preferences disable the viewport and popup transitions.