2.0.5 • Published 4 years ago

react-storybook-console v2.0.5

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

React Storybook Console

THIS PACKAGE IS DEPRECATED. PLEASE, USE THE OFFICIAL CONSOLE ADD-ON: https://storybook.js.org/addons

Latest update includes support for React 16

What

Adds a panel to storybook to display anything sent to console log, error, warn, or info functions.

React Storybook Console Screenshot

How

Installation

npm install react-storybook-console --save-dev

Use

1 - Import the module in the addons.js file

// .storybook/addons.js
import '@kadira/storybook/addons';
import 'react-storybook-console/dist/register.js';

2 - Add the module in your stories as a decorator

import StorybookConsole  from 'react-storybook-console';

storiesOf('MyComponent', module)
    .addDecorator(StorybookConsole)
    .add('do stuff', () => { ...... });

Thanks

Thanks to Kadira for developing such a great tool as React Storybook as well as to all the other developers of addons for React Storybook. I learned a lot reading their code.

Icons from: IconMoon

2.0.5

4 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago