Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Expose refs to every ReactUSWDS component #2599

Open
brandonlenz opened this issue Sep 29, 2023 · 1 comment
Open

[feat] Expose refs to every ReactUSWDS component #2599

brandonlenz opened this issue Sep 29, 2023 · 1 comment
Labels
type: feature New feature or request

Comments

@brandonlenz
Copy link
Contributor

brandonlenz commented Sep 29, 2023

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.

@werdnanoslen
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants