Skip to content
HomePagesHomePages template kit

group

A sidebar card collapsing its member slots into one editor group.

A sidebar card collapsing its member slots into one editor group. The id is the key a Renderer reads (bindGroups(schema).address) and the label is the card’s title in the editor — two independent facts, both stated, identifier first, exactly as a slot declares its key and its label.

Import from @homepages/template-kit.

function group<const Id extends string, const K extends string>(id: Id, label: string, members: readonly LayoutRow<K>[]): GroupCard<K, Id>
Name Type Required Description
id Id required
label string required
members readonly LayoutRow<K>[] required

GroupCard<K, Id>

import { group } from "@homepages/template-kit";
group("address", "Property address", ["address_street", "address_locality"]);