Input

Campo de texto React controlado: `value` y `onChange` son obligatorios.

import { Input } from '#LibComponents/react/atomic/input/input.component';

Props del tipo del componente

PropTipoObligatorioDefaultDescripción
onChange(inputValue: StaticFields) => voidsí—
onClear(name?: string) => voidno—
onFocus(name: string) => voidno—
onBlur() => voidno—
onFormError(error: ErrorOnField) => voidno—
onEnterKeyPress(e?: KeyboardEvent) => voidno—
autocomplete'on' | 'off' | 'do-not-autofill'no—
classNamestringno—
customErrorMessagestringno—
disabledbooleanno—
errorMarkbooleanno—
hasTogglebooleanno—
hasClearbooleanno—
hasErrorbooleanno—
idstringno—
iconstringno—
labelstringsí—
namestringsí—
placeholderstringno—
requiredbooleanno—
showRequiredbooleanno—
suffixstringno—
type'text' | 'password'sí—
valuestringsí—
validPatternsRegExp[]no—
tabIndexnumberno—
testIDstringno—
readOnlybooleanno—
labelFloatingbooleanno—
toUpperCasebooleanno—