Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (26 loc) · 874 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 874 Bytes

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.