storybook-mini

0.0.43 • Public • Published

Storybook mini

A miniature version of storybook developed for react

Usage

Before using storybook in your app you have to generate storycache which storybook will be using to display the stories.

Add the following to the package.json

{
    "scripts": {
        "build-storycache": "build-storycache",
        "watch-storycache": "build-storycache -w"
    }
}

Run the following command

npm run build-storycache - for building storycache

npm run watch-storycache - for watching storycache


In App.js

import { Storybook } from "storybook-mini";
import storyCache from "./storycache";

export default function App() {
    return (
        <Storybook storyCache={storyCache}>
            <div className="app">
                Hello World
            </div>
        </Storybook>
    )
}

Package Sidebar

Install

npm i storybook-mini

Weekly Downloads

0

Version

0.0.43

License

MIT

Unpacked Size

19.5 kB

Total Files

11

Last publish

Collaborators

  • ironmanvim