validate
function and uses a dedicated validation schema to determine the next validity state of the fields.value
, fieldProps
, fields
and form
, and returns the message stringvalid
(boolean)invalid
(boolean)fieldProps
in a field component declaration and various callback methods. We recommend to base the validation UI based on the validity state.valid
and invalid
states are not interchangeable, thus:false
. Further field interactions update the validity state correspondingly.