Input
A single line field with clear labels and useful states.
A recognizable search entry point with clear affordances.
npx shadcn@latest add @silicon-ui/search-fieldnpx shadcn@latest add @silicon-ui/search-fieldInstall the dependencies.
npm install lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/search-field/search-field.tsxcomponents/silicon-ui/search-field/search-field.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 | — |
value* | string | — |
onValueChange* | (value: string) => void | — |
Also accepts the props of InputHTMLAttributes<HTMLInputElement>, except type.