storybook/docs/snippets/vue/button-story-rename-story.js.mdx
2021-02-23 00:26:03 +00:00

17 lines
291 B
Plaintext

```js
// Button.stories.js
import Button from './Button.vue';
export default {
component: Button,
title: 'Components/Button',
};
export const Primary = () => ({
components: { Button },
template: '<Button primary label="Button" />',
});
Primary.storyName = 'I am the primary';
```