Hextech UI

Search Field

Live example

Search Field

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/search-field.json

API reference

These are the main Search Field options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
labelstring (required)—
value / defaultValuestringempty
onValueChange(value: string) => void—
onSearch / debounceMs(value: string) => void / number300 ms

onValueChange updates editing immediately. Use onSearch for filtering or requests and set debounceMs to delay that callback. Keep value paired with onValueChange for controlled text, or use defaultValue. Cancel stale requests in your data layer.