Skip to content
HomePagesHomePages template kit

ATTR_SLOT_ITEM

Zero-based index of one item inside a collection slot (`{...slot.x.item(i)}`) — the per-item handle for a record-item list.

Zero-based index of one item inside a collection slot ({...slot.x.item(i)}) — the per-item handle for a record-item list. The editor resolves per-item selection, live enhancer surfaces, and per-item image crops against it, scoped to the enclosing ATTR_SLOT_ID element.

Import from @homepages/template-kit.

const ATTR_SLOT_ITEM: "data-slot-item"