mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 00:52:12 +08:00
22 lines
352 B
Plaintext
22 lines
352 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
import Button from './Button.vue';
|
|
|
|
export default {
|
|
//👇 Creates specific parameters for the story
|
|
parameters: {
|
|
myAddon: {
|
|
data: 'this data is passed to the addon',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const Basic = {
|
|
render: () => ({
|
|
components: { Button },
|
|
template: '<Button label="Hello" />',
|
|
}),
|
|
};
|
|
```
|