mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:31:47 +08:00
26 lines
403 B
Plaintext
26 lines
403 B
Plaintext
```js
|
|
// List.stories.js
|
|
|
|
import List from './List'
|
|
import ListItem from './ListItem'
|
|
export default {
|
|
component: List,
|
|
title: 'List',
|
|
};
|
|
|
|
export const Empty = (args) => <List {...args} />;
|
|
|
|
export const OneItem = (args) => (
|
|
<List {...args}>
|
|
<ListItem />
|
|
</List>
|
|
);
|
|
|
|
export const ManyItems = (args) => (
|
|
<List {...args}>
|
|
<ListItem />
|
|
<ListItem />
|
|
<ListItem />
|
|
</List>
|
|
);
|
|
``` |