storybook/docs/snippets/svelte/button-story-with-addon-example.js.mdx
2021-09-03 23:31:04 +01:00

22 lines
329 B
Plaintext

```js
// Button.stories.js
import Button from './Button.svelte';
export default {
//👇 Creates specific parameters for the story
parameters: {
myAddon: {
data: 'this data is passed to the addon',
},
},
};
export const Basic = {
render: (args) => ({
Component: Button,
props: args,
}),
};
```