react-uswds
react-uswds copied to clipboard
[feat] Expose refs to every ReactUSWDS component
Is your feature request related to a problem? Please describe.
Consumers may want to assign and use refs for any number of our components, but only a select few forward refs.
Describe the solution you'd like
As a convention, every ReactUSWDS component should forward a ref, so that consumers can interact with them more flexibly given whatever use cases their apps present
Describe alternatives you've considered
Our current mixmatched approach is an alternative, but is not consistent. Exporting refs is a net benefit overall.
Would #2728 resolve this issue? If so, let's link it to the PR