storybook/docs/snippets/vue/button-story-rename-story.js.mdx
2023-11-27 20:57:51 -07:00

23 lines
471 B
Plaintext

```js
// Button.stories.js
import Button from './Button.vue';
export default {
component: Button,
};
/*
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
* See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Primary = {
name: 'I am the primary',
render: () => ({
components: { Button },
template: '<Button primary label="Button" />',
}),
};
```