FieldRenderProps
Represents the props that are passed to the component which is rendered by Field.
Name | Type | Default | Description |
---|---|---|---|
children |
|
Represents the children that are passed to the Field. | |
modified |
|
Indicates if the field is modified.
The modified state is set to | |
name |
|
The name of the field in the Form state. | |
onBlur |
|
A callback you have to call when the rendered component is blurred. Responsible for setting the touched state of the Field. | |
onChange |
|
A callback you have to call when the value of the rendered component is changed
(see example).
The | |
onFocus |
|
A callback you have to call when the rendered component is focused. Responsible for setting the visited state of the Field. | |
touched |
|
Indicates if the field is touched.
The touched state is set to | |
valid |
|
A calculated property based on whether | |
validationMessage |
|
Represents the error message that is returned by the validator.
The Field is considered valid if the | |
value |
|
Represents the current value of the Field (see example). | |
visited |
|
Indicates if the field is visited.
The visited state is set to |