-
SummaryIn trying to get multiple stories rendering nicely in a single Canvas I came up with this solution:
Which works fine, and the
But when I use that instead like so it now is not filtered from the sidebar:
The tags are present in the object so I'm not really sure what the difference is. Additional informationNo response Create a reproductionNo response |
Beta Was this translation helpful? Give feedback.
Answered by
shilman
Dec 30, 2024
Replies: 1 comment 1 reply
-
Tags need to be statically analyzable, so not returned from a function. So you should do: export const AllElementTypes = {
...multiStory({ source: elementTypes, component: ButtonElement }),
tags: ['!dev', '!test'],
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
shilman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tags need to be statically analyzable, so not returned from a function. So you should do: