A storybook addon that display the window size on the right bottom corner.
$ npm install storybook-window-size
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>
))
MIT © Malek Hakim