Skip to content

Files

Latest commit

b854bc6 · May 6, 2025

History

History

viewport

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 6, 2025
Mar 24, 2025
Mar 21, 2025
Mar 21, 2025
Mar 24, 2025
Apr 17, 2025
Mar 25, 2025
Mar 21, 2025
Mar 27, 2025
May 3, 2025
Mar 21, 2025

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/viewport

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

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

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

Usage

The usage is documented in the documentation.