mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:01:53 +08:00
23 lines
344 B
Plaintext
23 lines
344 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
|
|
import Button from './Button.vue';
|
|
|
|
const meta: Meta<typeof Button> = {
|
|
title: 'Button',
|
|
component: Button,
|
|
argTypes: {
|
|
onClick: {},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof Button>;
|
|
|
|
export const Text: Story = {
|
|
args: {},
|
|
};
|
|
```
|