storybook/docs/snippets/react/list-story-with-unchecked-children.js.mdx
Kyle Gach 2cee61b651 Update snippets to CSF 3
- Fix some minor errors
2022-12-05 12:37:36 -07:00

26 lines
535 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/7.0/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'List',
component: List,
};
export const OneItem = {
args: {
children: <Unchecked {...Unchecked.args} />,
},
};
```