Skip to content
HomePagesHomePages template kit

listFill

Fills ANY list slot.

Fills ANY list slot. What the model does — pick from the media pool, choose from a select vocabulary, generate scalar items, curate places — is never declared here: it derives from the slot’s own declared item, so one builder serves every list and only the parameters vary. On a record item the same declaration seats each row field’s own fill: beside it.

Import from @homepages/template-kit.

function listFill(i: ListFillInput): BuiltDecision<"list-fill">
Name Type Required Description
i ListFillInput required

BuiltDecision<"list-fill">

import { listFill } from "@homepages/template-kit";
// On list.of(text.short({ cap: 80 })) — generates six short items.
listFill({ count: 6, structureHint: "Short noun phrases.", voice: "Concrete.", content: "Six highlights." });
// On list.of(image()) — picks and orders from the property's photos.
listFill({ count: { min: 3, max: 8 }, pick: "The strongest set." });