Combobox
Search and select from a list without leaving the field.
A compact choice field with a keyboard friendly menu.
npx shadcn@latest add @silicon-ui/selectnpx shadcn@latest add @silicon-ui/selectInstall the dependencies.
npm install @radix-ui/react-select lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/select/select.tsxcomponents/silicon-ui/select/select.module.csscomponents/silicon-ui/lib/menu-highlight.tsx sharedInstall 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* | { value: string; label: string; disabled?: boolean }[] | — |
description | string | — |
placeholder | string | "Select an option" |
id | string | — |
className | string | — |
Also accepts the props of ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, except children.