mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 03:21:49 +08:00
20 lines
295 B
Plaintext
20 lines
295 B
Plaintext
```js
|
|
// CSF 2
|
|
|
|
import Button from './Button.vue';
|
|
|
|
export default {
|
|
title: 'Button',
|
|
component: Button,
|
|
};
|
|
|
|
export const Primary = (args) => ({
|
|
components: { Button },
|
|
setup() {
|
|
return { args };
|
|
},
|
|
template: '<Button v-bind="args" />',
|
|
});
|
|
Primary.args = { primary: true };
|
|
```
|