FieldArrayRenderPropsPremium
Contains props that are passed to components rendered inside FieldArray components.
Name | Type | Default | Description |
---|---|---|---|
children |
|
Contains child elements that are passed to the FieldArray. | |
modified |
|
Shows whether the field value has changed from its initial value. Becomes true when the field value changes for the first time. | |
name |
|
Contains the field name in the form state. | |
onInsert |
|
Inserts a value at a specific position in the array. | |
onMove |
|
Moves a value from one position to another in the array. | |
onPop |
|
Removes and returns the last value from the array. | |
onPush |
|
Adds a value to the end of the array. | |
onRemove |
|
Removes a value at a specific position in the array. | |
onReplace |
|
Replaces a value at a specific position in the array. | |
onUnshift |
|
Adds a value to the beginning of the array. | |
touched |
|
Shows whether the user has interacted with the field. Becomes true when the field loses focus. | |
valid |
|
Shows whether the field passes validation and has been touched. | |
validationMessage |
|
Contains the error message from validation. The field is valid when this is empty. | |
value |
|
Represents the current value of the FieldArray (see example). | |
visited |
|
Shows whether the user has focused on the field. Becomes true when the field receives focus. |