-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for story-level tags #207
Conversation
|
||
<Meta title='test'/> | ||
|
||
<Story name="Story1" tags="single" > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't following CSF v3.0
format, right? Asking to clarify if we're supposed to preserve this behavior in v5
of this addon (on the next
branch).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good question. I think our legacy support should support this, but the new API shouldn't, as this is not like regular CSF, and I only added it here because it's how Meta already works.
🚀 PR was released in |
Fixes #203
This PR adds support for story-level tags as described at https://storybook.js.org/docs/writing-stories/tags
Ie.
<Story name="..." tags={['!dev', 'autodocs']} />
Story
attributesStoryProps
types to support thetags
propIf you want to use this feature today, make sure you're at least on Storybook version 8.1.0
📦 Published PR as canary version:
4.1.7--canary.207.1873b6d.1
✨ Test out this PR locally via:
npm install @storybook/addon-svelte-csf@4.1.7--canary.207.1873b6d.1 # or yarn add @storybook/addon-svelte-csf@4.1.7--canary.207.1873b6d.1