SearchField
Search input with built-in magnifier icon and clear button. Inherits label/required/helperText/error from Input.
Examples
With label
<SearchFieldlabel="Search contact"requiredvalue={q}onChange={setQ}placeholder="Type a name..."/>
With helper text
Search by name, email or phone.
<SearchFieldlabel="Find user"value={q}onChange={setQ}helperText="Search by name, email or phone."/>
API Reference
Props of the SearchField component.
| Prop | Type | Default | Description |
|---|---|---|---|
value* | string | — | — |
onChange* | (value: string) => void | — | Receives the value directly (not the event). |
label | string | — | — |
required | boolean | false | — |
helperText | string | — | — |
error | string | boolean | — | — |
placeholder | string | 'Buscar...' | — |
disabled | boolean | false | — |