HTML

The HTML field can be used to display any content, with the ability to run scripts in a protected sandbox.

Example

{
  type: "html",
  label: "HTML",
  html: "<h1 style='text-align: center'>Hello world!</h1>",
  height: 100,
}

Options

Output

Use these options when using the field with make.

label?
undefined
A label describing the purpose of the field.
url?
string
A URL pointing to the content to display. Alternatively, you can display arbitrary HTML using the html property.
html?
string
The HTML content to display, if no url is given.
height?
number
The height of the content, in pixels.