Skip to content
HomePagesHomePages template kit

SlotGroup

Render `as` (a host element or component) carrying the unit's marker: a group binding emits `data-slot-group`, a collection row's `ItemBinding` emits `data-slot-item` — so the editor outlines and edits the container as one sidebar card.

Render as (a host element or component) carrying the unit’s marker: a group binding emits data-slot-group, a collection row’s ItemBinding emits data-slot-item — so the editor outlines and edits the container as one sidebar card. Rendering the same unit again (a clone slide, a second layout branch) is just another SlotGroup with the same binding; every copy is live.

Import from @homepages/template-kit.

function SlotGroup<As extends ElementType>(props: SlotGroupProps<As>): ReactNode
Name Type Required Description
props SlotGroupProps<As> required

ReactNode