Search documentation

Search the documentation and open a page.

A collection of links for navigating websites.

Loading...

Installation

pnpm dlx shadcn@latest add @wirekyt/navigation-menu

Composition

NavigationMenu ├── NavigationMenuList │ └── NavigationMenuItem │ ├── NavigationMenuLink │ └── NavigationMenuTrigger │ └── NavigationMenuContent ├── NavigationMenuIndicator (optional) └── NavigationMenuViewport (optional)

Examples

Default

Loading...
Loading...

Grid

Loading...

Groups

Loading...

With Icons

Loading...

API Reference

PropTypeDefaultDescription
idstring | undefined—Unique identifier used to connect the component parts.
translationsIntlTranslations | undefined—Configures translations.
idsElementIds | undefined—Overrides generated identifiers for individual parts.
valuestring | undefined—Current value when the component is controlled.
defaultValuestring | undefined—Initial value when the component is uncontrolled.
onValueChange((details: ValueChangeDetails) => void) | undefined—Runs when value changes.
openDelaynumber | undefined—Configures open delay.
closeDelaynumber | undefined—Configures close delay.
disableClickTriggerboolean | undefined—Configures disable click trigger.
disableHoverTriggerboolean | undefined—Configures disable hover trigger.
disablePointerLeaveCloseboolean | undefined—Configures disable pointer leave close.

Context, Hooks, and Types

ExportAPI
NavigationMenuContextRender-prop component that exposes component state and actions.
NavigationMenuRootProviderProvides an externally created API to the component tree.
useNavigationMenuCreates or accesses the component API.
useNavigationMenuContextReturns the nearest component API.

Utilities and Supporting Types

ExportAPI
navigationMenuTriggerStyleSupporting type or utility exported with the component.