storybook/docs/snippets/react/list-story-unchecked.js.mdx
2021-11-09 01:41:54 +00:00

25 lines
540 B
Plaintext

```js
// List.stories.js|jsx
import React from 'react';
import { List } from './List';
//👇 Instead of importing ListItem, we import the stories
import { Unchecked } from './ListItem.stories';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'List',
component: List,
};
export const OneItem = (args) => (
<List {...args}>
<Unchecked {...Unchecked.args} />
</List>
);
```