← All Components

Combobox

Searchable dropdown combining Popover, Command, and Button. Supports single and multi-select.

Default

With Disabled Items

Java is disabled in this list.

Custom Width

Multi-Select

Select multiple items. Click items to toggle selection.

Disabled

Props

PropTypeDescription
itemsIComboboxItem[]Array of { value, label, disabled? } objects
valuestringControlled selected value
onValueChange(value: string) => voidChange handler for controlled mode
placeholderstringPlaceholder text when nothing is selected
searchPlaceholderstringPlaceholder for the search input
emptyTextstringText shown when no results match search
disabledbooleanDisable the combobox
classNamestringAdditional classes for the trigger button

Usage

import { Combobox } from "@/components/ui/Combobox"; const items = [ { value: "next.js", label: "Next.js" }, { value: "remix", label: "Remix" }, ]; <Combobox items={items} placeholder="Select framework..." onValueChange={(value) => console.log(value)} /> <Combobox.Multi items={items} placeholder="Select many..." onValuesChange={(values) => console.log(values)} />