/storybook-window-size

Display window size on your storybook

Primary LanguageJavaScriptMIT LicenseMIT

storybook-window-size

A storybook addon that display the window size on the right bottom corner.

storybook-window-size

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