@nlabs/storybook-addon-viewport

3.4.3 • Public • Published

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.

This addon works with Storybook for: React.

Screenshot

Installation

Install the following npm module:

npm i --save-dev @nlabs/storybook-addon-viewport

or with yarn:

yarn add -D @nlabs/storybook-addon-viewport

Basic Usage

Simply import the Storybook Viewport Addon in the addon.js file in your .storybook directory.

import '@nlabs/storybook-addon-viewport/register'

This will register the Viewport Addon to Storybook and will show up in the action area.

FAQ

How do I add a new device?

Unfortunately, this is currently not supported.

How can I make a custom screen size?

Unfortunately, this is currently not supported.

Dependents (0)

Package Sidebar

Install

npm i @nlabs/storybook-addon-viewport

Weekly Downloads

1

Version

3.4.3

License

MIT

Last publish

Collaborators

  • nitrog7