storybook/docs/snippets/react/my-component-story-configure-viewports.mdx.mdx
2020-10-24 21:09:28 +08:00

27 lines
367 B
Plaintext

```md
<!-- MyComponent.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs/blocks';
<Meta
title='Stories'
parameters={{
viewport: {
viewports: MINIMAL_VIEWPORTS,
defaultViewport: 'iphone6'
},
}}
/>
<Story
name="MyStory"
parameters={{
viewport: {
defaultViewport: 'iphonex'
}
}}
>
<div />
</Story>
```