Skip to content
HomePagesHomePages template kit

SelectSlotDef

The serialized shape `select`/`select.of` emit — a `select`-kind `SlotDef`.

The serialized shape select/select.of emit — a select-kind SlotDef. values (hand-authored vocabulary) and options.source (fact-derived vocabulary) are mutually exclusive; which one is present depends on whether the slot was built with select.of([...]) or select({ from }).

Import from @homepages/template-kit.

export interface SelectSlotDef extends Head {
type: "select";
values?: SelectOptionInput[];
options?: {
source: string;
};
creatable?: boolean;
}