```js
// List.stories.js
import List from './ListComponent.vue';
import ListItem from './ListItem.vue';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'List',
component: List,
};
export const Empty = (args, { argTypes }) => ({
components: { List },
props: Object.keys(argTypes),
template: '
',
});
export const OneItem = (args, { argTypes }) => ({
components: { List, ListItem },
props: Object.keys(argTypes),
template: '
',
});
export const ManyItems = (args, { argTypes }) => ({
components: { List, ListItem },
props: Object.keys(argTypes),
template: `
`,
});
```