BenixBenix DSv1.1.0

SearchField

Search input with built-in magnifier icon and clear button. Inherits label/required/helperText/error from Input.

Examples

With label

<SearchField
label="Search contact"
required
value={q}
onChange={setQ}
placeholder="Type a name..."
/>

With helper text

Search by name, email or phone.

<SearchField
label="Find user"
value={q}
onChange={setQ}
helperText="Search by name, email or phone."
/>

API Reference

Props of the SearchField component.

PropTypeDefaultDescription
value*string
onChange*(value: string) => voidReceives the value directly (not the event).
labelstring
requiredbooleanfalse
helperTextstring
errorstring | boolean
placeholderstring'Buscar...'
disabledbooleanfalse