Skip to content
HomePagesHomePages template kit

EditorSelection

What `useEditor` hands an island author: the selection scoped to the island's own section instance.

What useEditor hands an island author: the selection scoped to the island’s own section instance. Instance identity is resolved by the runtime and never exposed; a selection in any other section instance reads as null.

Import from @homepages/template-kit or @homepages/template-kit/island-runtime.

export type EditorSelection = {
kind: "section";
} | {
kind: "slot";
slotId: string;
itemIndex?: number;
fieldName?: string;
};