FormRenderPropsPremium
Represents the props that are passed to the render
option component of the Form.
Name | Type | Default | Description |
---|---|---|---|
allowSubmit |
|
Indicates if the Form is ready to be submitted.
Useful for toggling the disabled state of the Submit button. jsx
| |
errors |
|
The key-value pair containing the current errors by field path, combined from both field and form level validators. jsx
| |
modified |
|
Indicates if the Form is modified.
If any field is modified, jsx
| |
onChange |
|
A callback for emitting changes to a specific field without using the Field component (see example).
jsx
| |
onFormReset |
|
A callback for resetting the Form. jsx
| |
onSubmit |
|
A callback for submitting the Form.
Can be passed to the jsx
| |
submitted |
|
Indicates if the Form is successfully submitted. Useful for detecting if the user is leaving the form before saving changes. jsx
| |
touched |
|
Indicates if the Form is touched.
If any field is touched, jsx
| |
valid |
|
Indicates if the Form is valid.
If any field is invalid, jsx
| |
valueGetter |
|
A callback for getting the value of a field without using the Field component (see example). Useful for creating and modifying the UI based on the field values. jsx
| |
visited |
|
Indicates if the Form is visited.
If any field is visited, jsx
|