<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
<hk-custom-html />Children: None. The tag is self-closing.
Props
Write props as kebab-case attributes.
| Prop | Type | Required | Default | Allowed values | Editor label |
|---|---|---|---|---|---|
html | textarea | no | "" | max length 30000 | HTML |
css | textarea | no | "" | max length 10000 | CSS |
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.
Related tags
hk-app-block: Renders a block from a Hekana app inside the page.
