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-custom-html>

hk-custom-html: Your own HTML and CSS, sanitized and scoped to the block. Syntax, props, defaults and examples.

On this page

Your own HTML and CSS, sanitized and scoped to the block.

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

Syntax

html
<hk-custom-html />

Children: None. The tag is self-closing.

Props

Write props as kebab-case attributes.

PropTypeRequiredDefaultAllowed valuesEditor label
htmltextareano""max length 30000HTML
csstextareano""max length 10000CSS

Required props

None. Every prop has a default or can be left out.

Examples

No example in the starter themes yet.

Limits and security

  • The HTML and CSS are sanitized and the CSS is scoped to the block: neither can run script, load anything but https images and the allow-listed video embeds, or style anything outside the block.
  • Limits: 30,000 characters of HTML and 10,000 characters of CSS.
  • hk-app-block: Renders a block from a Hekana app inside the page.

Next steps