storybook/docs/snippets/common/storybook-story-layout-param.mdx.mdx
2021-10-12 19:10:23 +01:00

19 lines
386 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { Button } from './Button';
<Meta title="Button" component={Button}/>
<!-- Render functions are a framework specific feature to allow you control on how the component renders -->
<Story
name="WithLayout"
parameters={{
layout: 'centered',
}}
render={() => ({ })}>
</Story>
```