html element¶
Inline raw HTML content.
Fields¶
| Field | Type | Default | Description |
|---|---|---|---|
html |
string | required | Raw HTML content, inserted verbatim into the slide. Authored inline or via html_file: "path/to/snippet.html" (the file form reads the file at parse time). |
html_file |
path (optional) | null |
Path to a file whose text becomes html, relative to the slide source file (e.g. "card.html"). Read and inlined at parse time. Author exactly one of html / html_file; validated slides always carry html. |
Every element also shares the common fields — position, size, anchor, opacity, scale, and angle.
Example¶
{
// Inline HTML, inserted verbatim into the slide.
html: "<div class=\"badge\">Inline HTML</div>",
position: [10, 10],
width: 40,
}