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.
Signature
Section titled “Signature”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 ])[];};