Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Navigation Menu examples · Standard

Navigation with Descriptions Navigation Menu for React

A Resources dropdown whose links pair an icon and a title with a short description.

Framework
UI library

A Resources dropdown where each link has an icon, a title and one line of description: Documentation, Guides & Tutorials and Video Courses. The description tells people which resource fits before they click.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

FAQ

How are the icon and the text laid out?

The link takes items-start, so the icon lines up with the title, and the title and description stack in a column beside it. The description uses the muted text color.

How are the icons rendered?

Each item's icon is a Lucide component stored in the data, rendered inside the link and hidden from assistive tech, since the label beside it names the link.

How wide is the panel?

w-80 on the column inside NavigationMenuContent, room for a title and a short description per line.

How do the links use my router?

Each link is your router's link rendered through NavigationMenuLink, so it keeps the menu's styles and focus handling. NavigationMenuLink takes the Next.js Link through render, as in render={<Link href="#" />}.

How does the menu work from the keyboard?

Tab moves between the triggers and the links, Enter or Space opens a trigger's panel, and Escape closes it and returns focus to the trigger. The root is a nav, so screen readers list it as a navigation landmark.

How do I mark the current page?

Set aria-current="page" on the NavigationMenuLink that matches the route, and style it with the aria-[current=page]: variant. active on NavigationMenuLink sets it for you.