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-app-block>

hk-app-block: Renders a block from a Hekana app inside the page. Syntax, props, defaults and examples.

On this page

Renders a block from a Hekana app inside the page.

Group: Apps and custom code. Name in the editor: App block. Complete props for every tag: Tag reference.

Syntax

html
<hk-app-block app="…" block="…" />

Children: None. The tag is self-closing.

Props

Write props as kebab-case attributes.

PropTypeRequiredDefaultAllowed valuesEditor label
appselectyes-customer_subscriptionsApp
blockselectyes-subscribe, portalBlock
productdatano--Product
settingsdatano--Settings
labeltextno""max length 80Block name for screen readers

Required props

  • app
  • block

Examples

No example in the starter themes yet.

Limits and security

  • The app and block must be a pair on the closed list of app blocks; anything else prints nothing, so a theme cannot point the frame at an address of its own.
  • hk-custom-html: Your own HTML and CSS, sanitized and scoped to the block.

Next steps