The issue: Let's say I have a table component that has 5 different sizes and 5 different intents - when working locally, I don't really care about those, I'd like my development storybook to be as minimalistic as possible so I only care about the defaults, if I need I can change the size / intent using controls. When I publish (chromatic or node env is prod) I would like to see all sizes / intents. Is there any way I could do this?
Related to this - it would be super useful to be able to define these different stories in one story:
Instead of
export const Info = { args: { intent: 'info' }, play: () => { } };
export const Warning = { args: { intent: 'warning' }, play: () => { } };
export const Danger = { args: { intent: 'danger' }, play: () => { } };
export const Small = { args: { size: 'small' }, play: () => { } };
something like (Intents & Sizes would be headers and the respective stories would show underneath)
export const Intents = { args: [{ intent: 'info' }, { intent: 'danger' }, { intent: 'warning' }], play: () => { // this tests runs on all } };
export const Sizes = { args: [{ size: 'small' }, { intent: 'normal' }, { intent: 'big' }], play: () => { // this tests runs on all } };
Maybe there is already something similar but I haven't found it π
Thanks!