Home Components Combobox
React Combobox Components
12 free React comboboxes built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for searchable selects, autocomplete, and multi select.
Combobox 1 : Searchable team picker with no field label, where selecting the current option again clears it.Combobox 2 : Searchable combobox with options grouped under Product, Design and Operations headings.Combobox 3 : Grouped combobox for workspace sections where some options are greyed out and cannot be selected.Combobox 4 : Pill-shaped combobox with an icon beside each team area, also shown in the trigger once picked.Combobox 5 : Labelled workflow stage combobox with search, a no results message and click again to deselect.Combobox 6 : Workspace picker with a preselected value and a New workspace button at the bottom of the list.Combobox 7 : Timezone combobox built from the browser's timezone list, sorted and labelled by GMT offset.Combobox 8 : Assignee picker showing avatars with status dots, names and emails in a searchable list.Combobox 9 : Country picker with flag images in the list and next to the selected country.Combobox 10 : Multi-select combobox that shows chosen tags as removable badges inside the trigger.Combobox 11 : Multi-select tag combobox that shows two badges and a +N more toggle to expand the rest.Combobox 12 : Multi-select combobox whose trigger shows a count of selected tags instead of badges.
About React Combobox Components A React combobox is an input that lets users type to filter a list and pick an option, like a searchable select. Watermelon UI comboboxes combine a Radix UI Popover with a cmdk Command list, styled with Tailwind CSS, and include single and multi-select patterns. Add one with the shadcn CLI, then pass your options and keep the selected value in state.
When to use it Picking a country, timezone, or currency from a long list. Assigning users or tags where typing is faster than scrolling. Multi-select fields that show chosen items as badges. When to use something else Use Select when the list is short enough that searching is not needed. Use Radio Group when there are only a few options and all should stay visible. Use Dropdown Menu when the items are actions to run, not values to choose. Frequently asked questions How do I make a shadcn combobox with multiple selection? Keep an array of values in state and toggle a value in each CommandItem onSelect instead of closing the popover. Show the selected values as badges in the trigger.
How do I filter options by label instead of value? cmdk filters on each CommandItem value, so set value to the text people will type, such as the label. Keep your ID in a separate field for the saved selection.
Why does my shadcn combobox not scroll inside a dialog? Set modal on the Popover root, as in <Popover modal>. The dialog blocks scrolling outside its own content, and the popover list is portaled outside it, so the wheel does nothing until the popover is modal too.
How do I make the popover the same width as the trigger? Give PopoverContent the class w-(--radix-popover-trigger-width). Radix sets that CSS variable to the trigger width.
How to use React Combobox Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/combobox-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: lucide-react.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .