mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 08:11:53 +08:00
19 lines
328 B
Plaintext
19 lines
328 B
Plaintext
```js
|
|
// List.stories.js
|
|
|
|
import List from './ListComponent.vue';
|
|
|
|
export default {
|
|
component: List,
|
|
};
|
|
|
|
// Always an empty list, not super interesting
|
|
export const Empty = {
|
|
render: (args, { argTypes }) => ({
|
|
components: { List },
|
|
props: Object.keys(argTypes),
|
|
template: '<List v-bind="$props"/>',
|
|
}),
|
|
};
|
|
```
|