mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:12:03 +08:00
15 lines
313 B
Plaintext
15 lines
313 B
Plaintext
```ts
|
|
// List.stories.tsx
|
|
|
|
import React from 'react';
|
|
import { List } from './List';
|
|
import { Unchecked } from './ListItem.stories';
|
|
|
|
const Template: Story<ListProps> = (args) => <List {...args} />;
|
|
|
|
export const OneItem = Template.bind({});
|
|
OneItem.args = {
|
|
children: <Unchecked {...Unchecked.args} />,
|
|
};
|
|
```
|