storybook/docs/snippets/vue/button-story-default-export-with-component.3.ts.mdx

17 lines
387 B
Plaintext

```ts
// Button.stories.ts
import Button from './Button.vue';
import { ComponentMeta } from '@storybook/vue3';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Button',
component: Button,
} as ComponentMeta<typeof Button>;
```