<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
<hk-app-block app="…" block="…" />Children: None. The tag is self-closing.
Props
Write props as kebab-case attributes.
| Prop | Type | Required | Default | Allowed values | Editor label |
|---|---|---|---|---|---|
app | select | yes | - | customer_subscriptions | App |
block | select | yes | - | subscribe, portal | Block |
product | data | no | - | - | Product |
settings | data | no | - | - | Settings |
label | text | no | "" | max length 80 | Block name for screen readers |
Required props
appblock
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.
Related tags
hk-custom-html: Your own HTML and CSS, sanitized and scoped to the block.
