Navigation Menu

Navigation

A collection of links for navigating websites.

Import

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

Usage

Interactive Navigation Menu

A navigation menu with dropdowns. On mobile, it transforms into an expandable accordion-style menu.

API Reference

value
string

The controlled value of the active menu item

defaultValue
string

The default value of the active menu item

onValueChange
(value: string) => void

Event handler for value change

delayDuration200
number

The duration from when the mouse enters a trigger until the content opens