mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
23 lines
486 B
Plaintext
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>
|
|
`,
|
|
};
|
|
```
|