question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Addon-docs: Support non-story exports

See original GitHub issue

Describe the bug When im export my component with any HOC’s, then in sidebar i’m getting unknown story with export name.

Screenshots image

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:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (17 by maintainers)

github_iconTop GitHub Comments

8reactions
bdombrocommented, Apr 15, 2022

Hint: To use the new feature you can now allowList using includeStories: ['myStory1', ...] or blockList using excludeStories: ['myNonStoryExport', ...] in export default

1reaction
tlaregcommented, Apr 11, 2022

@bdombro there is typo in your comment, should be “excludeStories” with “i” took me 5 minutes to figure out why it is not working 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found