Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storybook: pass props defined in the contexts file to components

How can I pass props defined in the contexts file to components in my stories? Docs does not make this clear: https://www.npmjs.com/package/@storybook/addon-contexts

I am using vue.

Is there a working example of someone using addon-contexts?

like image 509
mwager Avatar asked Jun 11 '19 09:06

mwager


1 Answers

I m looking too for something similar and i have founded this link: https://monorepo-git-add-addon-contextsvue-i.storybook.now.sh/examples/vue-kitchen-sink/?path=/story/addon-contexts--languages

Maybe it can help ;)

like image 107
rdhainaut Avatar answered Sep 20 '22 16:09

rdhainaut