Addon-docs: Oh no! The source is not available.
See original GitHub issueI tried the new Storybook addon-docs in Alpha version 35. Everything works as expected! However, I don’t see the source code of the Story. I guess it isn’t implemented yet, is it? If it is implemented, do I need to add something to my story?
storiesOf('1. Atoms|01. Buttons/1. ContentButton', module)
.addParameters({ component: ContentButton })
.add('01. default', () => {
const props = {
label: text('label', 'Button'),
onClick: () => {},
selected: boolean('selected', false),
disabled: boolean('disabled', false),
};
return <ContentButton {...props} />;
});
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Setup CSF + MDX stories with @storybook/addon-docs - GitLab
Migrate existing stories to @storybook/addon-docs . ... Most (~70%) of the content in design.gitlab.com is not available in @gitlab/ui and ...
Read more >storybook/addon-docs
DocsPage pulls information from your stories, components, source code, and story metadata to construct a sensible, zero-config default. Click on ...
Read more >storybook/components@6.5.14
SOURCE_UNAVAILABLE = 'Oh no! The source is not available.' enum StoryError.
Read more >Storybook - An alternative approach - Paul Scanlon
This isn't to say my suggestions are better but there are a few ... npm install @storybook/addon-actions @storybook/addon-docs --save -dev.
Read more >Using Storybook with Vue single file components
I found yet another way to improve your approach, by linking your source loader into addon-docs. I just modified this part on the...
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
Wow. Thats embarrassing. Thank you.
Sure here is a pared down version https://github.com/benjamingeorge/ts-addon-docs