npm.io
0.0.28 • Published 3 years agoCLI

new-story

Licence
ISC
Version
0.0.28
Deps
3
Size
10 kB
Vulns
0
Weekly
0
Stars
5

New Story

Utilities to generate stories for your components.

new-story logo

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.