Use the form field's state for advanced composition with custom form components.
You can use getFormField within the context of a Field, Fieldset, or ElementField component to access the state of the field and use it to build more advanced form components.
Usage Example
The getFormField function is provided for more advanced use cases where you may need to access the entire state of a form field, as well as the form itself.
API
The getFormField function returns an object with the following types: