Addon-docs: Support non-story exports
See original GitHub issueDescribe the bug When im export my component with any HOC’s, then in sidebar i’m getting unknown story with export name.
Screenshots
Code snippets
import { Preview, Story, Meta } from '@storybook/addon-docs/blocks';
export const Spin = enhance(SpinPresenter);
<Meta title="Spin/@desktop" />
# Spin
## Examples
### _size
<Preview>
<Story name="_size">
<Spin size="l" />
</Story>
</Preview>
System:
- Framework: react
- Addons: @storybook/addon-docs
- Version: 5.2.0-alpha.21
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (17 by maintainers)
Top Results From Across the Web
Docs Addon | Storybook: Frontend workshop for UI development
Just like Storybook, Docs supports every major view layer including React, Vue, ... require('@storybook/addon-docs/mdx-compiler-plugin'); module.exports ...
Read more >@storybook/addon-docs - NPM Package Versions - Socket
Core: Restore /preview etc package exports; return unresolved path from presets. ... Addon-docs: Fix canvas support expand code for non-story #18808 ...
Read more >https://raw.githubusercontent.com/storybookjs/stor...
... ColorItem, Meta, } from '@storybook/addon-docs/blocks'; import { withKnobs, ... export const nonStory1 = 'foo'; // a non-story export export const ...
Read more >@storybook/addon-docs: Versions | Openbase
8 days ago. Other. Revert "Core: Wrap manager entries to handle exports" #20311 ... Addon-docs: Fix canvas support expand code for non-story #18808 ......
Read more >Doc Blocks - Storybook
To use the ArgsTable in DocsPage, export a component property on your stories ... Meta, Story } from '@storybook/addon-docs'; import { MyComponent }...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hint: To use the new feature you can now allowList using
includeStories: ['myStory1', ...]
or blockList usingexcludeStories: ['myNonStoryExport', ...]
inexport default
@bdombro there is typo in your comment, should be “excludeStories” with “i” took me 5 minutes to figure out why it is not working 😄