/// import { Cell, Default, NAME, recipe, UI } from "commontools"; interface Item { title: string; } interface ListInput { title: Cell>; items: Cell>; } interface ListOutput extends ListInput {} export default recipe( "ct-list demo", ({ title, items }) => { return { [NAME]: title, [UI]: ( rather than just the Item[] itself // this allows components like ct-list to manage the cell internally. $value={items} editable title="Items" /> ), title, items, }; }, );