<hk-section-group>
hk-section-group: Marks where a shared section group (header, footer, announcement) sits in a layout. Syntax, props, defaults and examples.
On this page
Marks where a shared section group (header, footer, announcement) sits in a layout.
Group: Layout and structure. Name in the editor: Shared section group. Complete props for every tag: Tag reference.
Syntax
<hk-section-group name="…" />Children: None. The tag is self-closing.
Props
Write props as kebab-case attributes.
| Prop | Type | Required | Default | Allowed values | Editor label |
|---|---|---|---|---|---|
name | select | yes | - | header, footer, announcement | Group |
Required props
name
Examples
From packages/templates-default/theme/layout/theme.snf, lines 2 to 2:
<hk-section-group name="announcement" />Limits and security
- Layout only: using it anywhere else is diagnostic SN2018.
- The tag prints nothing itself; the runtime renders the group's section tree at that spot.
Related tags
hk-section: A full-width band of the page with its own background and vertical padding.hk-container: Centres its content and limits it to a maximum width with horizontal padding.hk-stack: Lays its children out in a row or a column with a gap, alignment and wrapping.hk-grid: A responsive grid of columns with a gap and an optional minimum item width.hk-card: A box with background, radius, padding, border and shadow around its content.
