storybook/docs/snippets/common/storybook-component-layout-param.js.mdx
2021-06-28 23:00:33 +01:00

14 lines
278 B
Plaintext

```js
// Button.stories.js | Button.stories.jsx | Button.stories.ts | Button.stories.tsx
import Button from './Button';
export default {
title: 'Button',
component: Button,
// Sets the layout parameter component wide.
parameters:{
layout:'centered',
},
};
```