storybook/docs/snippets/web-components/list-story-reuse-data.js.mdx
2023-02-16 09:13:06 +08:00

23 lines
486 B
Plaintext

```js
// List.stories.js
import { html } from 'lit';
// 👇 We're importing the necessary stories from ListItem
import { Selected, Unselected } from './ListItem.stories';
export default {
title: 'List',
component: 'demo-list',
};
export const ManyItems = {
render: (args) => html`
<demo-list>
${Selected({ ...args, ...Selected.args })} ${Unselected({ ...args, ...Unselected.args })}
${Unselected({ ...args, ...Unselected.args })}
</demo-list>
`,
};
```