This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Improve storybook coverage for general-purpose components #3031
Labels
type: enhancement
The issue is a request for an enhancement.
Adding some storybook coverage for some of our more general-purpose components. As well as improving our storybook coverage, the goal here is to help decide which components might be good candidates for migrating to
@woocommerce/components
or@wordpress/components
.Component docs/readme, and relationship to other code bases
I also like the idea of using Storybook for more documentation about the components, e.g. when they relate to a Gutenberg component. So might try prototyping that alongside writing stories.
Some examples:
Button
over gutenbergButton
. I think our component is aButton
with an optional spinner mode, so maybe clearer to nameSpinnerButton
.ToggleButtonControl
- I recall this being needed as a temporary fix until a Gutenberg button got more support for a toggle state.Note - Storybook has changed, we may want to upgrade before writing more stories
Storybook 6 has a different api, we're on 5.
See related issue: #3028
PRs / components (feel free to add items, tick box when PR merged)
Chip
Add storybook demo for Chip #3029 @haszariCheckboxControl
Add storybook demo for CheckboxControl #3030 @haszariThe text was updated successfully, but these errors were encountered: