storybook/docs/snippets/angular/list-story-unchecked.ts.mdx
2021-02-02 00:50:49 +00:00

28 lines
588 B
Plaintext

```ts
// List.stories.ts
import { Story } from '@storybook/angular/types-6-0';
import ListComponent from './List.component';
import ListItemComponent from './ListItem.component';
import { Unchecked } from './ListItem.stories';
export const OneItem: Story<ListComponent> = (args) => ({
component: ListComponent,
moduleMetadata: {
declarations: [ListComponent, ListItemComponent],
},
props: args,
template: `
<list-component>
<listitem-component [item]="item"></listitem-component>
</list-component>
`,
});
OneItem.args = {
...Unchecked.args,
};
```