shadcn.io is not affiliated with official shadcn/ui
Dropdown Menu examples · Standard
Nested Dropdown Dropdown Menu for React
A New menu with Document and Folder on top and two submenus, one for media and one for document types.
A flat menu of twenty options makes people scroll. This dropdown menu opens from a New button with Document and Folder on top, and nests the rest in two submenus: Media (Image, Video, Audio) and Document Type (Text Document, Spreadsheet, Presentation, Form). It fits create menus in drives, CMSs and project tools.
Preview
Installation
FAQ
What is in the top menu?
Document and Folder, a separator, then the Media and Document Type submenu triggers. The menu is w-56.
How is a submenu built?
DropdownMenuSub wraps a DropdownMenuSubTrigger, which draws a chevron at its end, and a DropdownMenuSubContent with the rows. It opens beside its trigger on hover or with Arrow Right, and flips to the other side when there's no room.
Related
- Mixed Features Dropdown Dropdown MenuA File menu that mixes actions with
- Card Actions with Nested Share Dropdown MenuA card's actions menu with Edit
- Dropdown with Groups and Labels Dropdown MenuA menu split into labeled My Account and
- Context Menu with SubmenusA context menu with Share via Email and
- Menubar with SubmenuA File menu with an Open Recent submenu
- Dropdown with Checkboxes Dropdown MenuA View menu of checkbox rows that show or