diff --git a/addons/viewport/README.md b/addons/viewport/README.md index 5e9273e9b486..b9c2fe047511 100644 --- a/addons/viewport/README.md +++ b/addons/viewport/README.md @@ -89,7 +89,7 @@ import addStories from '@storybook/react'; addStories('Stories', module) // To set a default viewport for all the stories for this component .addParameters({ viewport: { defaultViewport: 'iphone6' }}) - .add('story', () => , { viewport: 'iphonex' }); + .add('story', () => , { viewport: { defaultViewport: 'iphonex' }}); ``` ## Examples