Copy a prompt for your AI coding tool with the source, dependencies and usage
Props
ComboboxProps
Also accepts all props of Omit<React.ComponentProps<"div">, "onChange" | "defaultValue">
| Prop | Type | Default | Description |
|---|---|---|---|
| options* required | ComboboxOption[] | — | — |
| value | string | null | — | — |
| defaultValue | string | null | null | — |
| onChange | (value: string | null) => void | — | — |
| placeholder | string | "Select an option…" | — |
| searchPlaceholder | string | "Search…" | — |
| emptyText | string | "No results found." | — |
| searchable | boolean | true | Show a search field above the options |
| deselectable | boolean | true | Choosing the selected option again clears it |
| defaultOpen | boolean | false | Opens on first render without moving focus, handy for previews |
Install
$ npx shadcn@latest add https://chromotion.dev/r/combobox.jsonThe CLI installs the base component; your customizations live in the code generated on the Customize tab.