You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`onSubmit`](#form-submission)| Passes an additional form object argument to your handler<br>`onSubmit({valid: [bool], values: {...}, invalidFields: {...}}`|
226
-
|[`values`](#initial-values)| An object that contains values for the form's fields |
227
-
|[`messages`](#validation)| An object that contains messages for the form's fields |
228
-
229
-
### Field
230
-
These properties are passed down to your field via props.
206
+
|[`onSubmit`](#form-submission)| A callback function<br>`onSubmit({valid: [bool], values: {...}, invalidFields: {...}}`|
207
+
|[`values`](#initial-values)| An object that will provide values to the form's fields |
208
+
|[`messages`](#validation)| An object that will provide messages to the form's fields |
231
209
232
-
| Property | Type | Returns | Description |
233
-
| --- | --- | --- | --- |
234
-
|`handleChange(e)`|`function`|`Promise`| Sets the `value` property of the state |
235
-
|`validate()`|`function`|`boolean`| Calls each validator and sets the `valid` and `message` properties of the state |
210
+
### Field Props
236
211
237
212
| Prop | Description |
238
213
| --- | --- |
@@ -243,7 +218,7 @@ These properties are passed down to your field via props.
243
218
|`message`| The message returned by a validator or a form's `messages` prop |
244
219
|`valid`| The valid property in the field's state. The initial value is `true`|
245
220
|`validate`| The field's `validate` function |
246
-
|`validators`| An array of validators |
221
+
|`validators`| An array containing the field's [validators](#validators)|
247
222
|`value`| The value property in the field's state |
248
223
249
224
**Note: `name` is a required prop that you must pass to your field as it is the lookup key for the field's value.**
0 commit comments