Update viewport documentation

This commit is contained in:
Mohamed Shaaban 2018-05-20 12:34:15 +02:00
parent b594d6c0d9
commit 3c13771fdc

View File

@ -188,6 +188,19 @@ storiesOf('Decorator with string', module)
</h1>
));
// Single
storiesOf('Parameterized story', module)
.addDecorator(withViewport())
.add(
'iPad',
() => (
<h1>
Do I look good on <b>iPad</b>?
</h1>
),
{ viewport: 'ipad' }
);
storiesOf('Decorator with object', module)
.addDecorator(
withViewport({