---
title: Content
project: UI Builder
version: 1.0
section: components
language: en
license: MIT
url: https://totaljs.es/docs/uibuilder/1-0/components/content/
updated: 2026-11-20T06:51:57.969Z
---

# Content

> Text, images, video, boxes and tabs that show content.

Text, images, video, boxes and tabs that show content. This page holds the catalogue group **Content**.

![A Headline, a Paragraph and a green Callout in a published design](/files/Jaq7I42Fs60f.webp)

Each entry gives the folder name and version of the component, its inputs and outputs, notes, its readme and its main settings: the key in the configuration, its default value and the field in the settings form. Every component also has **Name** and **Read value from**, described in [Component settings](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/).

## API

### accordion · version 1

Type: `component`

Groups content into panels that open and close one below the other.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `items` | `Array` | no |  | The panels of the accordion, edited in the settings form. |
| `icon` | `String` | no |  | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `bg` | `Boolean` | no | `false` | **Apply background** in the settings form. |
| `border` | `Boolean` | no | `true` | **Apply border** in the settings form. |
| `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. |
| `shadow` | `Boolean` | no | `false` | **Drop shadow** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

The Accordion is a vertically collapsible content panel which is displaying panels, one or multiple at a time within the available space.

### callout · version 1

Type: `component`

Shows a short message in a coloured box with an icon.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `color` | `String` | no | `#F0F0F0` | **Type** in the settings form. |
| `icon` | `String` | no | `ti ti-totaljs` | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |

**Inputs:** none.  
**Outputs:** none.

- Offered in **Import components** for designs of type `app`, `dashboard`.

The Callout component creates callout messages. In its settings you set:

- **Path**: the path of the value.
- **Name**: the name or label of the callout.
- **Icon**: the icon of the callout.
- **Type**: the type of the callout: alert, error, message or success.

### comment · version 1

Type: `component`

Holds a note for the people who edit the design; the published design does not show it.

**Inputs:** none.  
**Outputs:** none.

A simple component for writing comments.

### externalimage · version 1

Type: `component`

Shows an image from an address, optionally as a link.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `src` | `String` | no | `https://cdn.totaljs.com/logo.png` | **Image URL address** in the settings form. |
| `width` | `String` | no |  | **Width** in the settings form. |
| `height` | `String` | no |  | **Height** in the settings form. |
| `rounded` | `Boolean` | no | `true` | **Rounded image** in the settings form. |
| `link` | `Boolean` | no | `false` | **Enable link** in the settings form. |
| `newtab` | `Boolean` | no | `true` | **Open link in a new tab** in the settings form. |
| `url` | `String` | no |  | **Link URL address** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

This component renders an external image from an address.

### gap · version 1

Type: `component`

Adds empty vertical space of a fixed height.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `height` | `Number` | no | `25` | **Height** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

This component creates a gap, according to number of pixels you set in settings.

### headline · version 1

Type: `component`

Shows a heading of level H1, H2 or H3.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `type` | `String` | no | `h1` | **Type** in the settings form. One of `h1` (H1), `h2` (H2), `h3` (H3). |
| `align` | `String` | no | `left` | **Align** in the settings form. One of `left` (Left), `center` (Center), `right` (Right). |
| `color` | `String` | no |  | **Color** in the settings form. A colour. |

**Inputs:** none.  
**Outputs:** none.

This component creates headline. You can set type and style in settings.

### hr · version 1

Type: `component`

Draws a horizontal line.

**Inputs:** none.  
**Outputs:** none.

Horizontal rule component.

### html · version 1

Type: `component`

Shows your own HTML code.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `html` | `String` | no | `You <b>HTML</b> code` | Code, edited in a code editor. |

**Inputs:** none.  
**Outputs:** none.

This component renders raw HTML content.

### image · version 1

Type: `component`

Shows an image that you upload or pick in the editor.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `rounded` | `Boolean` | no | `true` | **Rounded image** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

This component inserts image from your device, or from specific path. Just click on the component in the editor, and insert comfortably image from your device, or set a path to your image in settings.

### infocard · version 1

Type: `component`

Shows a label and a value, for example a status.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `color` | `String` | no |  | **Border color** in the settings form. A colour. |
| `isnullable` | `Boolean` | no |  | **Render nullable value** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

This component displays an information-type text. You can set your style in settings.

### listbox · version 1

Type: `component`

Shows a list of items from a data source and sends the clicked item to an output.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datasource` | `String` | no |  | **Data source** in the settings form. A component (`@id`), a code list or a data view. |
| `output` | `String` | no |  | **Output** in the settings form. An output of the design. |
| `icon` | `String` | no |  | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `hidelabel` | `Boolean` | no | `false` | **Hide label** in the settings form. |
| `background` | `Boolean` | no | `false` | **Enable background** in the settings form. |
| `items` | `Array` | no | `[]` | Your own list of items, edited in the settings form. |

**Inputs:** none.  
**Outputs:** `click` (Click).

- Other components can follow it: it appears as `@id` in **Read value from**.

__Listbox data-source needs to contain__:

```js
[
	{ name: 'Ruby' },
	{ name: 'PHP' },
	{ name: 'node.js', description: 'Lorem ipsum' }, // description is optional
	{ name: 'Python' }
]
```

### panel · version 1

Type: `component`

A box with a label and an area for other components.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `icon` | `String` | no | `ti ti-grid` | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `bglabel` | `Boolean` | no | `false` | **Apply background on label** in the settings form. |
| `bgcontent` | `Boolean` | no | `false` | **Apply background on content** in the settings form. |
| `border` | `Boolean` | no | `true` | **Apply border** in the settings form. |
| `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. |
| `shadow` | `Boolean` | no | `false` | **Drop shadow** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

The component is suitable to making a better design.

### paragraph · version 1

Type: `component`

Shows a paragraph of text that you edit on the canvas.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `size` | `String` | no | `14` | **Font size** in the settings form. One of `12` (Small), `14` (Normal), `18` (Big). |
| `align` | `String` | no | `left` | **Text align** in the settings form. One of `left` (Left), `center` (Center), `right` (Right), `justify` (Justify). |
| `color` | `String` | no | `#777` | **Color** in the settings form. A colour. |

**Inputs:** none.  
**Outputs:** none.

This component creates a paragraph element with specific style you can set in settings.

### rating · version 1

Type: `component`

Lets the user give a star rating.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `icon` | `String` | no |  | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |

**Inputs:** none.  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

The component lets a user provide a star rating or view other people's ratings on a numeric scale for any service provided.

### stylebox · version 1

Type: `component`

A styled box with an area for other components.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `background` | `Boolean` | no | `true` | **Apply background** in the settings form. |
| `padding` | `Boolean` | no | `true` | **Apply padding** in the settings form. |
| `border` | `Boolean` | no | `false` | **Apply border** in the settings form. |
| `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. |
| `shadow` | `Boolean` | no | `false` | **Drop shadow** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

This component is a content component that displays the content you put into it in the editor. You can style this component in settings.

### tabs · version 1

Type: `component`

Shows content in tabs, one tab at a time.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `items` | `Array` | no |  | The tabs, edited in the settings form. |

**Inputs:** none.  
**Outputs:** none.

The component is a content panel to show multiple contents in specific space one at a time.

### video · version 1

Type: `component`

Plays a YouTube or Vimeo video.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `url` | `String` | no |  | **URL address to YouTube/Vimeo** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

This component plays a video from a link you set in settings.
