---
title: Navigation Menu
description: A collection of links for navigating websites.
component: true
links:
doc: https://www.radix-ui.com/docs/primitives/components/navigation-menu
api: https://www.radix-ui.com/docs/primitives/components/navigation-menu#api-reference
---
## Installation
CLIManual
```bash
npx shadcn@latest add navigation-menu
```
Install the following dependencies:
```bash
npm install @radix-ui/react-navigation-menu
```
Copy and paste the following code into your project.Update the import paths to match your project setup.
## Usage
```tsx
import {
NavigationMenu,
NavigationMenuContent,
NavigationMenuIndicator,
NavigationMenuItem,
NavigationMenuLink,
NavigationMenuList,
NavigationMenuTrigger,
NavigationMenuViewport,
} from "@/components/ui/navigation-menu"
```
```tsx
Item OneLink
```
## Examples
### Link Component
When using the Next.js `` component, you can use `navigationMenuTriggerStyle()` to apply the correct styles to the trigger.
```tsx
import { navigationMenuTriggerStyle } from "@/components/ui/navigation-menu"
```
```tsx {3-5}
Documentation
```
See also the [Radix UI documentation](https://www.radix-ui.com/docs/primitives/components/navigation-menu#with-client-side-routing) for handling client side routing.