```js // List.stories.js|jsx import React from 'react'; import { List } from './List'; import { ListItem } from './ListItem'; //👇 Imports a specific story from ListItem 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, }; //👇 The ListTemplate construct will be spread to the existing stories. const ListTemplate = { render: ({ items, ...args }) => { return ( {items.map((item) => ( ))} ); }, }; export const Empty = { ...ListTemplate, args: { items: [], }, }; export const OneItem = { ...ListTemplate, args: { items: [ { ...Unchecked.args, }, ], }, }; ```