new-story
v0.0.28
Published
Integrate storybook in seconds to your existing app
Downloads
31
Maintainers
Readme
New Story
Utilities to generate stories for your components.
Usage
# Using Yarn:
$ yarn global add new-story
# or, using NPM
$ npm i -g new-story
Integrating storybook into your existing app.
# Generate boilerplate story for all components.
cd into you a directory you want your stories to be generated.
new-story stories
Working on new component
# Generate Stories for all your variants
new-story story -f <filepathfromroot> -p <props>
## filepath eg: src/components/ui/Button/Button.stories.tsx
## props eg: size=sm,md,lg
Look into this example for detailed instructions.