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
Why there is no addon API to get all stories?
The text was updated successfully, but these errors were encountered:
@ZigGreen maybe this API could help you? https://github.com/storybooks/react-storybook/blob/master/src/client/preview/client_api.js#L85
Sorry, something went wrong.
Yeap, this API meet my needs. But pls tell me how I can use it. Isn't it a private API?
@ZigGreen
here is a brief example how to use it:
import { storiesOf, getStorybook } from '@kadira/storybook'; storiesOf('React App', module) .add('Story 1', () => <Story1 />) ... const myStories = getStorybook(); console.log(myStories);
You'll have an array with all you storyKind -> stories ...
No branches or pull requests
Why there is no addon API to get all stories?
The text was updated successfully, but these errors were encountered: