storybook/docs/snippets/react/list-story-with-unchecked-children.js.mdx
2021-02-23 00:26:03 +00:00

17 lines
351 B
Plaintext

```js
// List.stories.js
import React from 'react';
import List from './List';
//👇 Instead of importing ListItem, we import the stories
import { Unchecked } from './ListItem.stories';
const Template = (args) => <List {...args} />;
export const OneItem = Template.bind({});
OneItem.args = {
children: <Unchecked {...Unchecked.args} />,
};
```