Spanish Total.js
English
Documentation For AI agents
Contents

Text

Widgets for headings, paragraphs, messages, code and short facts.

.md GitHub
On this page

Widgets for headings, paragraphs, messages, code and short facts. Click a text in the visual editor and choose Edit to write your own.

Headline, Paragraph 2, Alert and Code highlighter on a public page

API

component

headline.html

A heading with a paragraph below it.
ParameterTypeDescription
h? String Heading: the level of the heading, h1, h2 or h3. Default: h1
align? String Align: left, center or right. Default: left
maxwidth? String Paragraph max. width: auto, or a width such as 50% or 300px. Default: auto

You can Duplicate the paragraph to add more. The file in the repository also offers Justify for Align.

component

paragraph.html

One or more paragraphs of text.
ParameterTypeDescription
align? String Align: left, center, right or justify. Default: left

Choose Duplicate on a paragraph to add another one.

component

paragraph2.html

A short bold title with one or more paragraphs.
ParameterTypeDescription
align? String Align: left, center, right or justify. Default: left

Choose Duplicate on a paragraph to add another one.

component

alert.html

A coloured box with a short message.
ParameterTypeDescription
size? String Size: small, medium or large. Default: medium
align? String Align: left, center or right. Default: left
color? String Choose a color: one of the four swatches. Default: color1

The four colours are yellow (color1), red (color2), green (color3) and blue (color4).

component

codehighlighter.html

A block of source code with coloured syntax.
ParameterTypeDescription
language? String The language of the code, such as js or html. Leave it empty or enter auto to detect it.

The text keeps its line breaks. On the public site the colours come from the highlight.js library, which CMS loads from cdnjs.cloudflare.com on every page while the widget is installed. In the editor the code appears without colours.

component

keyvalue.html

Pairs of a name and a value, such as opening hours or product facts.

Choose Duplicate on a pair to add another one. The widget has no settings of its own.

Made in Europe