Skip to content

Commit

Permalink
Merge pull request #5967 from no23reason/patch-3
Browse files Browse the repository at this point in the history
Fix example of setting defaultViewport per story
  • Loading branch information
shilman committed Mar 12, 2019
1 parent cd4e5dd commit 7a6c1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/viewport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a6c1fa

Please sign in to comment.