Select
A compact choice field with a keyboard friendly menu.
Search and select from a list without leaving the field.
npx shadcn@latest add @silicon-ui/comboboxnpx shadcn@latest add @silicon-ui/comboboxInstall the dependencies.
npm install lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/combobox/combobox.tsxcomponents/silicon-ui/combobox/combobox.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
label* | string | — |
options* | ComboboxOption[] | — |
value | string | — |
defaultValue | string | "" |
onValueChange | (value: string) => void | — |
description | string | — |
placeholder | string | "Search or select…" |
emptyMessage | string | "No matches found" |
className | string | — |
Also accepts the props of InputHTMLAttributes<HTMLInputElement>, except value, defaultValue, onChange, placeholder.