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
errorField error from errors by name path
touched
touchedField touched from all touched by name path
helpers
setValue
setValueSets a new value for the field
setTouched
setTouchedSets a new touched status for the field. Value by default is true.
setError
setErrorSets an external error for the field
Last updated
Was this helpful?