We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When writing stories using the CSF format, there is no way to mark a single story to be skipped. Ideally, a parameter would be neat:
export const componentVariation = () => <MyComponent prop1={val1} />; componentVariation.story = { parameters: { skipLoki: true }, };
The text was updated successfully, but these errors were encountered:
Other addons to Storybook follow the pattern of exportedName.story.parameters.[addon name].[addon parameter]. https://storybook.js.org/docs/addons/writing-addons/#add-simple-metadata-using-parameters
exportedName.story.parameters.[addon name].[addon parameter]
For example:
myExportedStory.story = { parameters: { docs: { storyDescription: `This is the addon-docs way of adding data to its output.`, }, }, };
So, Loki should do something similar:
export const componentVariation = () => <MyComponent prop1={val1} />; componentVariation.story = { parameters: { loki: { skip: true, }, }, };
Which means the storiesOf version would look like this:
storiesOf
storiesOf('SomeComponent', module) .add( 'Component Variation', () => <MyComponent prop1={val1} />, { loki: { skip: true }, } );
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When writing stories using the CSF format, there is no way to mark a single story to be skipped. Ideally, a parameter would be neat:
The text was updated successfully, but these errors were encountered: