storybook/docs/snippets/vue/list-story-unchecked.2.js.mdx
2021-08-28 01:52:57 +01:00

25 lines
497 B
Plaintext

```js
// List.stories.js
import List from './List.vue';
import ListItem from './ListItem.vue';
//👇 Imports a specific story from ListItem stories
import { Unchecked } from './ListItem.stories';
export default {
component: List,
};
export const OneItem = {
args: {
...Unchecked.args,
},
render: (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { List, ListItem },
template: '<List v-bind="$props"><ListItem v-bind="$props"/></List>',
}),
};
```