Expose useField
hook from FormControl
for usage in custom input components
#8357
Labels
needs triage
Issues and pull requests that need triage attention
Description
It would be great to have access to the
useField
hook created byFormControl
to have access to the props when creating custom input components.Problem Statement/Justification
It is cumbersome to prop drill accessibility and functionality props such as the
isDisabled
orisInvalid
for a custom input component. Having access to the same internal hook API would help keep these standardized in reusable inputs.Proposed Solution or API
Add
useField
to the export list.Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: