Introduce Storybook #3293
Labels
d3: medium
No cheats. Monsters a bit faster.
implementation
Requires implementation
v4: must have
This is something really user want to have
Stories documentation
We use histoire to develop and test components.
In component folder you'll generally see a structure like this:
Let's see what each of these do.
VaBadge.story.vue
is a main story file of component, there should be only one such file. Here's how it looks inside:default
.va-badge-avatar
) - it's recommended to move it to separate component, then import it to main story.Story
andVariant
are the only components with caps because of Histoire requirements. All other components in template should be kebab-case.stories
folder as well.Story
andVariant
for details on customization.State we'll end up with:
That's not great, but converting everything at once is too big of a change.
The text was updated successfully, but these errors were encountered: