1.0.5 • Published 6 years ago

@twostoryrobot/storybook-addon-docgen v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Build Status npm (scoped)

storybook-addon-docgen

Generates documentation using react-docgen

Development

# Fork this repo and git clone it
npm install
npm run storybook

Usage

Add the addon to your .storybook/addons.js

import '@twostoryrobot/storybook-addon-docgen/register'

Add the docgen decorator to your stories. You must supply the component you want the documentation from. In this case we want to docs supplied from the Button component.

import docgen from '@twostoryrobot/storybook-addon-docgen'

storiesOf('Button', module)
  .addDecorator(docgen(Button))
  .add('with text', () => (
    <Button onClick={action('clicked')}>Hello Button</Button>
  ))
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago