mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:41:58 +08:00
13 lines
311 B
Plaintext
13 lines
311 B
Plaintext
```ts
|
|
// List.stories.tsx
|
|
import React from 'react';
|
|
import { List, ListProps} from './List';
|
|
// Instead of importing the ListItem, we import its stories
|
|
import { Unchecked } from './ListItem.stories';
|
|
|
|
export const OneItem = (args) => (
|
|
<List {...args}>
|
|
<Unchecked {...Unchecked.args} />
|
|
</List>
|
|
);
|
|
``` |