Input
Campo de texto React controlado: `value` y `onChange` son obligatorios.
import { Input } from '#LibComponents/react/atomic/input/input.component';hasError={true}disabled={true}<Input label="Email" name="email" type="email" value={v} onChange={fn} />Props del tipo del componente
| Prop | Tipo | Obligatorio | Default | Descripción |
|---|---|---|---|---|
onChange | (inputValue: StaticFields) => void | sí | — | |
onClear | (name?: string) => void | no | — | |
onFocus | (name: string) => void | no | — | |
onBlur | () => void | no | — | |
onFormError | (error: ErrorOnField) => void | no | — | |
onEnterKeyPress | (e?: KeyboardEvent) => void | no | — | |
autocomplete | 'on' | 'off' | 'do-not-autofill' | no | — | |
className | string | no | — | |
customErrorMessage | string | no | — | |
disabled | boolean | no | — | |
errorMark | boolean | no | — | |
hasToggle | boolean | no | — | |
hasClear | boolean | no | — | |
hasError | boolean | no | — | |
id | string | no | — | |
icon | string | no | — | |
label | string | sí | — | |
name | string | sí | — | |
placeholder | string | no | — | |
required | boolean | no | — | |
showRequired | boolean | no | — | |
suffix | string | no | — | |
type | 'text' | 'password' | sí | — | |
value | string | sí | — | |
validPatterns | RegExp[] | no | — | |
tabIndex | number | no | — | |
testID | string | no | — | |
readOnly | boolean | no | — | |
labelFloating | boolean | no | — | |
toUpperCase | boolean | no | — |