Skip to content

Why is this story not being excluded from the sidebar? #30154

Answered by shilman
DEfusion asked this question in Help
Discussion options

You must be logged in to vote

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'],
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DEfusion
Comment options

Answer selected by shilman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants