Skip to content

CodeCoupler Costa Components Html

The Html component is derived from the Box component.

The Html component allows you to set the inner HTML using a combination of the html and text options. These options use the function from the @codecoupler/dom-set-html package to set the final HTML. They also respond to changes, replacing the inner HTML as soon as they are modified.

Options

html: null | Function(context): (Element | String) | String
text: null | Function(context): String | Array<String> | Array<String>

Set the inner HTML using a combination of the html and text options. These options use the function from the @codecoupler/dom-set-html package to set the final HTML.