[feat] Update Table to USDWS 2.10.0 implementation #991
Labels
status: hold merge
This indicates not to merge the PR as there is a development dependency/other reason to hold off.
type: feature
New feature or request
Milestone
Does your feature request relate to a specific USWDS component?
Table
What USWDS Version is this feature present in?
2.10.0
Context
USWDS 2.10.0 Added several new table variations for mobile and data friendly display:
Describe the solution you'd like
Add new props to implement the new classes/style variations. Something like below:
I combined the stacked and stacked-header modifiers into a single prop because the two appear to be mutually exclusive. Implementers will use it as follows:
OR
Add storybook stories and unit tests for the different variations and verify the existing variations continue to behave as they should.
This might be a good candidate to add a storybook controls demo story 🤔
Describe alternatives you've considered
If there is a more effective and intuitive way to provide access to these table styles, feel free to go that route! Especially considering the stacked-header implementation. There may be a neater way to handle that.
The text was updated successfully, but these errors were encountered: