mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:31:47 +08:00
23 lines
471 B
Plaintext
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" />',
|
|
}),
|
|
};
|
|
```
|