Skip to content
HomePagesHomePages template kit

GroupCard

A sidebar grouping card produced by `group(...)`.

A sidebar grouping card produced by group(...). Structurally an object, so it is distinguishable at runtime from a bare LayoutRow (a string or array).

Id is always a literal: group takes the id as its first argument, so every card’s id is known at compile time — that literal is the key a Renderer reads off bindGroups(schema).<id>.

Import from @homepages/template-kit.

export interface GroupCard<K extends string, Id extends string = string> {
id: Id;
label: string;
members: readonly LayoutRow<K>[];
}