react-uswds icon indicating copy to clipboard operation
react-uswds copied to clipboard

[feat] Expose refs to every ReactUSWDS component

Open brandonlenz opened this issue 2 years ago • 1 comments

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.

brandonlenz avatar Sep 29 '23 14:09 brandonlenz

Would #2728 resolve this issue? If so, let's link it to the PR

werdnanoslen avatar Mar 05 '24 23:03 werdnanoslen