mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:41:58 +08:00
17 lines
370 B
Plaintext
17 lines
370 B
Plaintext
```js
|
|
// List.stories.js | List.stories.jsx
|
|
|
|
import React from 'react';
|
|
|
|
import List from './List';
|
|
|
|
//👇 Instead of importing ListItem, we import the stories
|
|
import { Unchecked } from './ListItem.stories';
|
|
|
|
const Template = (args) => <List {...args} />;
|
|
|
|
export const OneItem = Template.bind({});
|
|
OneItem.args = {
|
|
children: <Unchecked {...Unchecked.args} />,
|
|
};
|
|
``` |