How to display multiple variants? #215
Replies: 1 comment
-
I'm updating this myself because after creating an MDX files and console logging / looking in React dev tools in Chrome I was able to figure out the following, which I recommend being added to the documentation: The
|
Beta Was this translation helpful? Give feedback.
-
Here I have a YAML for an accordion:
What I want is to display the version of the accordion with the panels expanded by default and the version with the panels closed by default. Adding a
variants
key creates two sub-stories just like in the vanilla Storybook, but I cannot see any way in the documentation to populate these with the two different options. The docs linked to regarding UI patterns are equally unhelpful. Is this even possible? If not, is there a way for me to just write these stories in Javascript like I would with vanilla Storybook?thanks!
Beta Was this translation helpful? Give feedback.
All reactions