storybook/docs/snippets/common/storybook-component-layout-param.js.mdx
2021-11-06 03:20:29 +00:00

18 lines
411 B
Plaintext

```js
// Button.stories.js|jsx|ts|tsx
import { Button } from './Button';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Button',
component: Button,
// Sets the layout parameter component wide.
parameters: {
layout: 'centered',
},
};
```