mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
20 lines
343 B
Plaintext
20 lines
343 B
Plaintext
```md
|
|
<!-- Button.stories.mdx-->
|
|
|
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
|
|
import Button from './Button.vue';
|
|
|
|
<Meta title="Components/Button" component={Button} />
|
|
|
|
# Button
|
|
|
|
<Story name="Primary">
|
|
{() => {
|
|
return {
|
|
components: { Button },
|
|
template: `<Button primary label="Button" />`,
|
|
};
|
|
}}
|
|
</Story>
|
|
``` |