1.0.1 • Published 7 years ago

storybook-addon-usage v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Storybook Usage Addon

This addon let you display the story's declaration inside a panel.

npm.io

Getting Started

First, install the addon

npm install -D storybook-addon-usage

Add this line to your addons.js file (create this file inside your storybook config directory if needed).

import 'storybook-addon-usage/register';

Add those lines to your storybook config file

import {Usage} from 'storybook-addon-usage'
storybook.addDecorator(Usage);