Skip to content
HomePagesHomePages template kit

ListSlot

Kind-level def type for a `list` slot — the item is `element` (a single primitive) XOR `fields` (a record of slots).

Kind-level def type for a list slot — the item is element (a single primitive) XOR fields (a record of slots).

Import from @homepages/template-kit.

export type ListSlot = SlotBase & {
type: "list";
min?: number;
max?: number;
unique?: boolean;
element?: Slot;
fields?: Record<string, ListFieldSlot>;
title?: string;
item_order?: string[];
layout?: (string | [
string,
string
])[];
};