@storybook/addon-viewport
Build responsive components by adjusting Storybook’s viewport size and orientation
Last updated 2 years ago by hypnosphi .
MIT · Repository · Bugs · Original npm
$ cnpm install @storybook/addon-viewport 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 7.0.26                                ...           latest (2 years ago)
  • 7.1.0-beta.0                                ...           next (2 years ago)

17 Versions

  • 6.5.17-alpha.0                                ...           2 years ago
  • 7.1.0-beta.0                                ...           2 years ago
  • 7.0.26                                ...           2 years ago
  • 7.1.0-alpha.29                                ...           2 years ago
  • 6.5.16                                ...           3 years ago
  • 6.5.0-beta.8                                ...           3 years ago
  • 6.4.22                                ...           3 years ago
  • 6.5.0-alpha.38                                ...           4 years ago
  • 6.4.18                                ...           4 years ago
  • 6.5.0-alpha.23                                ...           4 years ago
  • 6.4.14                                ...           4 years ago
  • 6.5.0-alpha.18                                ...           4 years ago
  • 6.4.13                                ...           4 years ago
  • 6.4.12                                ...           4 years ago
  • 6.4.0-beta.0                                ...           4 years ago
  • 6.0.28-alpha.3                                ...           5 years ago
  • 6.3.8                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org