storybook/docs/snippets/vue/component-story-mdx-story-by-name.mdx-3.mdx.mdx

21 lines
396 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import Button from './Button.vue';
<Meta title="Button" component={Button} />
export const Template = (args) => ({
components: { Button },
setup() {
return { args };
},
template: '<Button v-bind="args" />',
});
<Story name="Basic" args={{ label: 'hello' }}>
{Template.bind({})}
</Story>
```