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

hussamkhatib/new-story

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published