mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
18 lines
312 B
Plaintext
18 lines
312 B
Plaintext
```js
|
|
// .storybook/preview.js
|
|
|
|
import { INITIAL_VIEWPORTS, MINIMAL_VIEWPORTS } from '@storybook/addon-viewport';
|
|
|
|
export default {
|
|
parameters: {
|
|
viewport: {
|
|
viewports: {
|
|
...INITIAL_VIEWPORTS,
|
|
...MINIMAL_VIEWPORTS,
|
|
},
|
|
defaultViewport: 'iphone14promax',
|
|
},
|
|
},
|
|
};
|
|
```
|