storybook/docs/snippets/react/list-story-reuse-data.js.mdx
2020-10-07 12:23:34 +08:00

14 lines
301 B
Plaintext

```js
// List.stories.js
import React from 'react';
import { Selected, Unselected } from './ListItem.stories';
export const ManyItems = (args) => (
<List {...args}>
<Selected {...Selected.args} />
<Unselected {...Unselected.args} />
<Unselected {...Unselected.args} />
</List>
);
```