storybook/docs/snippets/react/list-story-reuse-data.ts.mdx
2020-08-14 21:46:15 +01:00

14 lines
345 B
Plaintext

```ts
// List.stories.tsx
import React from 'react';
import * as ListItemStories from './ListItemStories';
export const ManyItems = (args) => (
<List {...args}>
<Selected {...ListItemStories.Selected.args} />
<Unselected {...ListItemStories.Unselected.args} />
<Unselected {...ListItemStories.Unselected.args} />
</List>
);
```