shadcn.io is not affiliated with official shadcn/ui
Dropdown Menu examples · Support
Resources Menu Dropdown Menu for React
A resources menu with learning and developer links under their own labels, each marked as external.
Developer products need more than a help link: guides, references and code. This dropdown menu opens from a Resources button and groups Getting Started, API Reference and Video Guides under Learning Resources, Code Examples and GitHub Repository under Developer, and Community Forum on its own, each with an external link icon. It fits developer portals, API products and SDK sites.
Preview
Installation
FAQ
How are the resources grouped?
Two DropdownMenuGroups, Learning Resources and Developer, each starting with its DropdownMenuLabel, then Community Forum after a last separator. The menu is w-56.
What is the small icon at the end of each row?
An external link icon at size-3, pushed to the end with ms-auto and aria-hidden. It says the row leaves the app; say it in text too, such as with aria-label, if that matters to screen reader users.
Does a row open a URL by itself?
No. The rows are plain items with no link. Open the page from each row's handler, or make the rows links.
Render a row as a link with render on DropdownMenuItem.
Is Learning Resources a choice?
No. It's a DropdownMenuLabel that names its group; it can't be focused or picked.
Related
- Support Dropdown Dropdown MenuA support menu with documentation and
- Help Menu Dropdown MenuA help menu behind a question mark button
- Dropdown with Groups and Labels Dropdown MenuA menu split into labeled My Account and
- Block Type Selector Dropdown MenuAn Insert Block menu with text, list and
- Simple Command DialogA button that opens a command dialog with
- Batch Actions Dropdown Dropdown MenuA batch actions menu for several selected