@storybook/addon-viewport
- Version 8.0.10
- Published
- 16.3 kB
- 1 dependency
- MIT license
Install
npm i @storybook/addon-viewport
yarn add @storybook/addon-viewport
pnpm add @storybook/addon-viewport
Overview
Build responsive components by adjusting Storybook’s viewport size and orientation
Index
Variables
variable DEFAULT_VIEWPORT
const DEFAULT_VIEWPORT: string;
variable INITIAL_VIEWPORTS
const INITIAL_VIEWPORTS: ViewportMap;
variable MINIMAL_VIEWPORTS
const MINIMAL_VIEWPORTS: ViewportMap;
Interfaces
interface Viewport
interface Viewport {}
interface ViewportAddonParameter
interface ViewportAddonParameter {}
property defaultOrientation
defaultOrientation?: 'portrait' | 'landscape';
property defaultViewport
defaultViewport?: string;
property disable
disable?: boolean;
property viewports
viewports?: ViewportMap;
interface ViewportMap
interface ViewportMap {}
index signature
[key: string]: Viewport;
interface ViewportStyles
interface ViewportStyles {}
Type Aliases
type Styles
type Styles = | ViewportStyles | ((s: ViewportStyles | undefined) => ViewportStyles) | null;
Package Files (2)
Dependencies (1)
Dev Dependencies (11)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@storybook/addon-viewport
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@storybook/addon-viewport)
- HTML<a href="https://www.jsdocs.io/package/@storybook/addon-viewport"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1765 ms. - Missing or incorrect documentation? Open an issue for this package.