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.
Signature
Section titled “Signature”function group<const Id extends string, const K extends string>(id: Id, label: string, members: readonly LayoutRow<K>[]): GroupCard<K, Id>Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
id |
Id |
required | |
label |
string |
required | |
members |
readonly LayoutRow<K>[] |
required |
Returns
Section titled “Returns”GroupCard<K, Id>
Example
Section titled “Example”import { group } from "@homepages/template-kit";
group("address", "Property address", ["address_street", "address_locality"]);