storybook/docs/snippets/react/button-story-with-addon-example.js.mdx
jonniebigodes c95cfa5db0
Update docs/snippets/react/button-story-with-addon-example.js.mdx
Co-authored-by: Deen <deen@chromatic.com>
2021-08-31 18:54:24 +01:00

22 lines
367 B
Plaintext

```js
// Button.stories.js | Button.stories.jsx
import React from 'react';
import { Button } from './Button';
export default {
component: Button,
//👇 Creates specific parameters for the story
parameters: {
myAddon: {
data: 'this data is passed to the addon',
},
},
};
export const Basic = {
render: () => <Button>hello</Button>,
};
```