mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
22 lines
329 B
Plaintext
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,
|
|
}),
|
|
};
|
|
```
|