You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does your feature request relate to a specific USWDS component?
Yes Search
What USWDS Version is this feature present in?
Current
Is your feature request related to a problem? Please describe.
Many of our props take inputProps to pass down to the underlying <TextInput> or <input> tag. Search should also allow for that, as well as other possible unforseen customization.
Describe the solution you'd like
Make it easier to extend or customize the Search/ search related components.
Describe alternatives you've considered
Option one, add inputProps to Search and pass it down to TextInput.
Option two, make Search more composable in general
create a SearchForm component that encapsulates the search form specific props and use it in the Search component
create a SearchButton component that encapsulates the custom button
use these in Search and storybook examples
We should consider if adding inputProps makes sense here or if just an example of building it out separately is enough.
The text was updated successfully, but these errors were encountered:
Does your feature request relate to a specific USWDS component?
Yes Search
What USWDS Version is this feature present in?
Current
Is your feature request related to a problem? Please describe.
Many of our props take
inputProps
to pass down to the underlying<TextInput>
or<input>
tag. Search should also allow for that, as well as other possible unforseen customization.Describe the solution you'd like
Make it easier to extend or customize the Search/ search related components.
Describe alternatives you've considered
inputProps
toSearch
and pass it down toTextInput
.Search
more composable in generalSearchForm
component that encapsulates the search form specific props and use it in theSearch
componentSearchButton
component that encapsulates the custom buttonSearch
and storybook examplesinputProps
makes sense here or if just an example of building it out separately is enough.The text was updated successfully, but these errors were encountered: