Combobox
Picks one value, or several, out of a list too long to scroll through: you type, and the list narrows to what matches.
Examples
Private credit
Venture capital
Check-in times on your listings follow this zone.
States
Set by your organisation for every payout.
Choose the airport you land at, so the host can plan the pickup.
Usage
Use it when
- Picking one of more than 10 known values, such as a city, a time zone or an adviser.
- Picking several values from a list, shown as chips, such as strategies or regions.
- Picking from results a server finds as you type.
Use something else when
- Up to 10 options that need no typing. Use Select instead.
- Two to six choices that each need their words in view. Use RadioGroup instead.
- Free text with suggestions, where any text is a valid answer. Use Input instead.
- Jumping to a record or running a command from anywhere in the app. Use CommandPalette instead.
Rules
General
Content
Avoid
Limits
Install
npx shadcn@latest add https://kaanarici.com/r/cobalt/combobox.jsonimport { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxEmpty, ComboboxStatus, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxChips, ComboboxChip, ComboboxChipsInput, ComboboxValue } from "@/components/cobalt/ui/combobox"