Skip to content
HomePagesHomePages template kit

ListRecordSlotDef

The serialized shape `list.of` emits for a record item — a `list`-kind `SlotDef` carrying `fields` (never `element`), plus the record-item surface: `layout` (authored ordering/pairing, flattened to bare rows) and `title` (the field whose value titles each row).

The serialized shape list.of emits for a record item — a list-kind SlotDef carrying fields (never element), plus the record-item surface: layout (authored ordering/pairing, flattened to bare rows) and title (the field whose value titles each row).

Import from @homepages/template-kit.

export interface ListRecordSlotDef<I extends Record<string, ListFieldSlot>> extends Head {
type: "list";
fields: I;
layout?: (string | [
string,
string
])[];
title?: string;
min?: number;
max?: number;
}