storybook-window-size
v1.0.1
Published
Display window size on your storybook
Downloads
5
Readme
storybook-window-size
A storybook addon that display the window size on the right bottom corner.
Install
$ npm install storybook-window-size
Usage
On your storybo
ok config.js
file, usually under ./storybook
, add the following.
import ScreenDimensions from 'storybook-window-size'
import { addDecorator } from '@storybook/react'
addDecorator(story => (
<ScreenDimensions>
{story()}
</ScreenDimensions>
))
License
MIT © Malek Hakim