shadcn.io is not affiliated with official shadcn/ui
Navigation Menu examples · Complex
Multi-level Nested Navigation Navigation Menu for React
A Products dropdown with two categories, each listing subcategory links with their own nested links indented below.
Products opens Development and Infrastructure, each with three subcategories, and each subcategory with three links indented under it. Three levels of a catalog in one panel, without flyout submenus.
Preview
Installation
FAQ
How are the levels shown?
Categories are headings, subcategories are links with a chevron, and their items sit below in a column with ms-4, ps-4 and a start border, so the nesting reads in both directions.
Can the subcategories open their own flyouts?
Not in this demo: every level is visible at once, which is easier to use than nested hover menus. For deeper trees, link the subcategory to its own page.
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
- Feature Sections with Headers Navigation MenuA Collaboration dropdown that groups its
- Full Mega Menu Navigation MenuA wide Platform mega menu with feature
- Tabbed Mega Menu Navigation MenuA Products mega menu with Web, Mobile and
- Feature Categories Navigation MenuA Solutions dropdown with six titled
- Dashboard-style with Stats Navigation MenuAn Analytics dropdown with four stat
- Mixed Content Types Navigation MenuA Solutions mega menu mixing solution