Field
This contains props for text fields, meta information, and helpers.
field
Props for text field
name
namestringField name
value
valueanyField value from values by name path
onChange
onChangeonChange(event: ChangeEvent<any>): voidChange event handler
onBlur
onBluronBlur(): voidBlur event handler
meta
error
errorstring | nullField error from errors by name path
touched
touchedbooleanField touched from all touched by name path
helpers
setValue
setValuesetValue(value: any): voidSets a new value for the field
setTouched
setTouchedsetTouched(isTouched?: boolean): voidSets a new touched status for the field. Value by default is true.
setError
setErrorsetError(message: string): voidSets an external error for the field
Last updated
Was this helpful?