storybook/docs/snippets/react/button-story-with-addon-example.js.mdx
2021-02-23 00:26:03 +00:00

19 lines
324 B
Plaintext

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