shadcn.io is not affiliated with official shadcn/ui
Navigation Menu examples · Standard
Navigation with Icons Navigation Menu for React
A Features dropdown whose links each start with an icon.
One Features dropdown with four links, Components, Performance, Security and Accessibility, each starting with an icon. Icons help people scan a list of similar words faster.
Preview
Installation
FAQ
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 big are the icons?
The link styles size an icon without a size class to size-4 and put a small gap after it, so the demo needs no classes on the icon.
How wide is the panel?
w-56 on the column inside NavigationMenuContent. Widen it if your labels are longer.
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="#" />}.
Related
- Navigation with Descriptions Navigation MenuA Resources dropdown whose links pair an
- Feature Cards with Icons Navigation MenuA Platform Features dropdown laid out as
- Simple Navigation Navigation MenuA navigation menu with Products and
- Simple Dropdown with Icons Dropdown MenuA short menu behind a dots button with an
- Mixed Links and Dropdowns Navigation MenuA navigation menu that mixes Products and
- Navigation without Viewport Navigation MenuProducts and Company dropdowns that each