Is there a way to generate stories dynamically? #12700
-
If I'm using CSF is there any way I can generate a bunch of stories dynamically/programmatically based on some JSON data or a JS object? As far as I can see, because each story needs to be exported like I know this is possible with the Also, in case you're wondering, I am using Theme UI to style and configure my design system. It uses a large theme config object and I was hoping to import that and loop through a set of properties and create stories that way. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
No, CSF is statically defined. For now you need to use the |
Beta Was this translation helpful? Give feedback.
No, CSF is statically defined. For now you need to use the
storiesOf
API if you want to do it dynamically.