Text
Widgets for headings, paragraphs, messages, code and short facts.
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.

API
component
headline.html
A heading with a paragraph below it.
headline.html| Parameter | Type | Description |
|---|---|---|
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.
paragraph.html| Parameter | Type | Description |
|---|---|---|
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.
paragraph2.html| Parameter | Type | Description |
|---|---|---|
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.
alert.html| Parameter | Type | Description |
|---|---|---|
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.
codehighlighter.html| Parameter | Type | Description |
|---|---|---|
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.
keyvalue.htmlChoose Duplicate on a pair to add another one. The widget has no settings of its own.