Skip to content

Commit

Permalink
Merge pull request #9940 from storybookjs/add/stories-for-layout-mdx
Browse files Browse the repository at this point in the history
ADD stories for layout in mdx as example and regression test
  • Loading branch information
ndelangen committed Feb 26, 2020
2 parents 2b8e15b + aa201f6 commit 92f9e23
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/official-storybook/stories/core/layout.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Button } from '@storybook/react/demo';

<Meta
title="Core/Layout MDX"
component={Button}
id="core-layout-mdx"
decorators={[storyFn => <div style={{ backgroundColor: 'yellow' }}>{storyFn()}</div>]}
/>

# Selected

<Preview>
<Story name="defaultValue">
<Button>Hello world</Button>
</Story>
<Story name="padded" parameters={{ layout: 'padded' }}>
<Button>Hello world</Button>
</Story>
<Story name="fullscreen" parameters={{ layout: 'fullscreen' }}>
<Button>Hello world</Button>
</Story>
<Story name="centered" parameters={{ layout: 'centered' }}>
<Button>Hello world</Button>
</Story>
</Preview>

0 comments on commit 92f9e23

Please sign in to comment.