Skip to content
Hekana Spray
Documentation
Getting started
Theme development
Components and tags

Localization

Apps and custom code

Examples and recipes
API reference
Publishing
Build apps
AI development

<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

html
<hk-section-group name="…" />

Children: None. The tag is self-closing.

Props

Write props as kebab-case attributes.

PropTypeRequiredDefaultAllowed valuesEditor label
nameselectyes-header, footer, announcementGroup

Required props

  • name

Examples

From packages/templates-default/theme/layout/theme.snf, lines 2 to 2:

html
<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.
  • 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.

Next steps