Mohammad Asif cf937194cb Removed un-waned things 1. před 7 měsíci
..
dist cf937194cb Removed un-waned things 1. před 7 měsíci
README.md cf937194cb Removed un-waned things 1. před 7 měsíci
jest.config.js cf937194cb Removed un-waned things 1. před 7 měsíci
manager.js cf937194cb Removed un-waned things 1. před 7 měsíci
package.json cf937194cb Removed un-waned things 1. před 7 měsíci

README.md

Storybook Viewport Addon

Storybook Viewport Addon allows your stories to be displayed in different sizes and layouts in Storybook. This helps build responsive components inside of Storybook.

Framework Support

Screenshot

Installation

Viewport is part of essentials and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:

npm i -D @storybook/addon-viewport

Then, add following content to .storybook/main.js:

export default {
  addons: ['@storybook/addon-viewport'],
};

You should now be able to see the viewport addon icon in the the toolbar at the top of the screen.

Usage

The usage is documented in the documentation.