shadcn.io is not affiliated with official shadcn/ui
Dropdown Menu examples · Editor
Block Type Selector Dropdown Menu for React
An Insert Block menu with text, list and media blocks under Basic Blocks, Lists and Media labels.
Block editors need a tidy list of what you can add. This dropdown menu opens from an Insert Block button and sorts nine block types into three labeled groups: Text, Quote and Divider under Basic Blocks; Bulleted, Numbered and To-do lists under Lists; Image, Embed and Code Block under Media. It fits block editors, docs tools and page builders.
Preview
Installation
FAQ
How are the block types grouped?
Three DropdownMenuGroups, each starting with a DropdownMenuLabel: Basic Blocks, Lists and Media, with a DropdownMenuSeparator between groups. The label inside the group names it for screen readers too.
Which icon leads each row?
Type, quote, minus, list, ordered list, checked square, image, link and code icons, one per row and aria-hidden, before the label. The menu is w-56.
Is Basic Blocks a choice?
No. A DropdownMenuLabel is a heading: it can't be focused or picked, and the arrow keys skip it.
Related
- Insert Options Dropdown Dropdown MenuAn insert menu behind a plus button for
- Text Formatting Dropdown Dropdown MenuA text formatting menu with bold, italic
- Simple Command DialogA button that opens a command dialog with
- Dropdown with Groups and Labels Dropdown MenuA menu split into labeled My Account and
- Heading Selector Dropdown MenuA heading level picker from H1 to H6
- Button with Text (Standard)The one filled action