Avara UI

Navigation Menu

A highly composable, accessible, and smoothly animated navigation menu built for modern React applications.
This NavigationMenu uses a strict context-driven composition pattern to share state across its sub-components. It features a smoothly sliding background indicator that tracks the active menu item and gracefully handles dropdown positioning.
The menu is context-driven: NavigationMenu publishes the open item, variant and color, and the Indicator measures the active trigger and slides to it. That hierarchy — Menu > List > Item > Trigger / Content — is what makes the animation work, so keep it intact.

Minimal

Pill chrome removed; the indicator becomes a thin underline.

Setvariant"minimal"
to strip the pill background from the bar and its panels — the indicator becomes a thin underline.

Installation

New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.

Install Navigation Menu

npx shadcn@latest add @algorize-ui/navigation-menu

components/custom/blocks/NavigationMenu.tsx is written into your project. Copy any snippet from a Usage tab above and it runs.

Install dependencies

Nothing beyond the shared setup — Navigation Menu needs only the cn helper and lucide-react, which the installation guide already put in place.

Features

Explore the Navigation menu's accessible dropdown features, including hover-delays, animated viewports, and responsive collapsing.

Customizable

Easily adapt the component's styling and behavior to fit your application's unique design system.

Accessible

Built with accessibility in mind, ensuring all users can interact with your application effectively.

Responsive

Fully responsive design that looks and works great across desktop, tablet, and mobile devices.

Performant

Optimized for maximum performance with minimal re-renders and efficient state management.

Best Practices & Guidelines

Usage Guidelines

Follow standard design principles when implementing this component. Ensure proper contrast, spacing, and context within your layout.

Props Reference

ComponentPropTypeDefaultDescription
NavigationMenuvariant"default" | "minimal" | "glass""default"
Determines the core visual architecture and styling of the navigation bar and its dropdown menus.
NavigationMenucolor"primary" | "indigo" | "rose" | "emerald" | "zinc" | string"primary"
Applies the active color theme to the hover states, soft backgrounds, and the sliding indicator. Fully supports custom hex codes; unrecognised names fall back to "primary".
NavigationMenuItemvaluestringRequired
A unique string identifier used by the internal context engine to link the Trigger to its specific Content dropdown.
NavigationMenuLinkactivebooleanfalse
Manually forces the link into an active state, applying the soft background color of your currently selected theme.