Skip to main content

HTML

The HTML component allows you to display HTML content.

HTML

The following section details HTML component's specific settings. For more details on the App Editor, check the dedicated documentation or the App Editor Quickstart:

HTML Input

TypeConnectableTemplatableDefaultDescription
stringtruetrue<img src="****"><h1 class="absolute top-4 left-2 text-white">Hello ${ctx.username}</h1>The HTML content to render

Outputs

NameTypeDescription
resultstringThe HTML.
loadingbooleanThe loading state of the HTML component.

Calling Frontend runnables

You can call frontend runnable from your HTML component. To do so, you can use the following syntax:

<button onclick="window.parent.postMessage('Hello');">Say Hello</button>

You can now catch the message in your frontend runnable:

window.addEventListener(
'message',
(event) => {
if (event.data === 'hello') {
alert('hello');
// You also interact with the app state here for example
}
},
false
);