[feat] Consistently export
component props (CheckboxProps, etc) so they can be easily overridden
#2778
Labels
export
component props (CheckboxProps, etc) so they can be easily overridden
#2778
Does your feature request relate to a specific USWDS component?
Some input elements have their props exported allowing them to be easily wrapped and customized, but some others do not. It's inconsistent and requires work-arounds like this from nasa.gov and this one from trussworks and this one from dept of labor
Examples of exported props:
Examples of non-exported props:
What USWDS Version is this feature present in?
6.2.0
Is your feature request related to a problem? Please describe.
Searching github shows lots of different work-around for something that could be solved by simply as adding an
export
keyword to your library.Describe the solution you'd like
Add
export
to common component props?Describe alternatives you've considered
I'm seeing various work-around in open source github repos like:
and
Additional context
While there are work-arounds, they are more complex and probably shouldn't be required.
The text was updated successfully, but these errors were encountered: