shadcn.io is not affiliated with official shadcn/ui
Input Group examples · Dropdown
Dropdown Actions Input Group for React
A file name input with a more-actions menu at its end.
Framework
UI library
Secondary actions for a field without crowding it: a ghost More button at the end opens a Dropdown Menu with Settings, Copy path and Open location, aligned to the button's end edge.
Preview
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
FAQ
How is the More button wired to the menu?
The trigger is an icon-only InputGroupButton named More. DropdownMenuTrigger renders the InputGroupButton through render.
Why does the menu line up with the end of the field?
align="end" on DropdownMenuContent place it.That keeps the menu under the button instead of spilling past the field.Related
- Search Filters Input GroupA product search with a Category menu at
- URL Builder with Dropdown Input GroupTwo URL inputs, one with a protocol menu
- Copy Button Input GroupA read-only link with a copy button that
- Simple Dropdown with Icons Dropdown MenuA short menu behind a dots button with an
- Search with Icon Input GroupA search input with a magnifying glass at
- Input with LabelA text input with a label above it