react-uswds
react-uswds copied to clipboard
feat: Add all component prop type definitons as exports
When creating a wrapper that extends a uswds component, it is useful to import in the Props that the wrapped component has so that the wrapped component’s prop types can be extended rather than having to copy and paste them.
To allow this, I am adding exports for all Props type definitions.
This shouldn’t have any impact on any projects that use react-uswds.
Summary
Related Issues or PRs
https://github.com/trussworks/react-uswds/issues/2667 #2728
How To Test
Nothing should change for the use of the package, but anything importing the package should also be able to import the Props type definition for any component.
Thanks @RobKohr! Take a look at the existing issue for this change; there might be a few more considerations before we can call it done.
Thanks @RobKohr! Take a look at the existing issue for this change; there might be a few more considerations before we can call it done.
@RobKohr I'd love to get this merged in the next release if you have some time to review the above. Do you need any help?