storybook/docs/snippets/react/list-story-with-unchecked-children.ts.mdx
2021-01-01 15:43:43 -05:00

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} />,
};
```