Oros UI

Search documentation

Search Oros UI pages and components.

Navigation Menu

Builds responsive navigation with nested links and rich panels.

Installation

Install Navigation Menu from Oros with shadcn CLI 4.13.0.

pnpm dlx shadcn@4.13.0 add @oros/navigation-menu

Usage

import {
  NavigationMenu,
  NavigationMenuContent,
  NavigationMenuIndicator,
  NavigationMenuItem,
  NavigationMenuLink,
  NavigationMenuList,
} from "@/components/ui/navigation-menu"

Open the Source tab in the preview for a complete working example.

Anatomy

ExportResponsibility
NavigationMenuThe root component that owns the primary structure and state.
NavigationMenuContentContains the primary visible content.
NavigationMenuIndicatorShows the current state, value, or selection.
NavigationMenuItemRepresents one option or repeated child.
NavigationMenuLinkA composable part of the component anatomy.
NavigationMenuListA composable part of the component anatomy.
NavigationMenuTriggerControls opening, selection, or disclosure behavior.
navigationMenuTriggerStyleA composable part of the component anatomy.
NavigationMenuPositionerPositions floating content relative to its anchor.

API Reference

Navigation Menu exports 9 named entries. Component exports accept the props of their underlying HTML element or Base UI component, plus an optional className, unless the source defines a more focused type.

  • NavigationMenu Component
  • NavigationMenuContent Component
  • NavigationMenuIndicator Component
  • NavigationMenuItem Component
  • NavigationMenuLink Component
  • NavigationMenuList Component
  • NavigationMenuTrigger Component
  • navigationMenuTriggerStyle Utility
  • NavigationMenuPositioner Component

Accessibility

  • Preserve the native and Base UI keyboard model when composing Navigation Menu; do not replace semantic links or controls with click-only elements.
  • Use concise accessible names, expose the current item when applicable, and verify focus order at both mobile and desktop widths.

Source

Navigation Menu uses the standard shadcn API and is distributed through Oros. Installing it adds the component source and required dependencies to your app. The Source tab above shows a complete usage example.