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

# Controls

> Fields, buttons and pickers that read input from the user.

Fields, buttons and pickers that read input from the user. This page holds the catalogue group **Controls**.

![Textbox, Checkbox, Toggle button, Dropdown, Slider, Rating and Progress bar in a published design](/files/Jaq7Ic2qs61f.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

### button · version 1

Type: `component`

A button that sends data to an input of the design when clicked.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `input` | `String` | no |  | **Input** in the settings form. An input of the design. |
| `type` | `String` | no | `primary` | **Type** in the settings form. One of `primary` (Primary), `secondary` (Secondary), `outline` (Outline). |
| `size` | `String` | no | `md` | **Size** in the settings form. One of `lg` (Large), `md` (Medium), `sm` (Small). |
| `icon` | `String` | no | `ti ti-angle-right` | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `fullwidth` | `Boolean` | no | `false` | **Full width** in the settings form. |
| `fullwidthxs` | `Boolean` | no | `true` | **Full width XS** in the settings form. |
| `bold` | `Boolean` | no | `false` | **Bold** in the settings form. |
| `radius` | `Boolean` | no | `true` | **Apply border radius** in the settings form. |
| `shadow` | `Boolean` | no | `false` | **Apply shadow** in the settings form. |

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

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

The Button component lets you set:

- **Path**: the path of the button.
- **Font and style**: the font and the style of the button.
- **Input**: the input that receives the data when the button is clicked.
- **Name**: the label of the button.

### calendar · version 1

Type: `component`

Lets the user pick a date in a calendar.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `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 | `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.

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

The Calendar is a component which provides the multi-view representation to display and select a date. Also, provide options to navigate in different levels of views like month, year, decade.

### checkbox · version 1

Type: `component`

A checkbox with the value true or false.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `required` | `Boolean` | no | `false` | **Required** in the settings form. |
| `reverse` | `Boolean` | no | `false` | **Reverse value** in the settings form. |
| `default` | `Boolean` | no | `false` | **Default value** in the settings form. |

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

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

The component that switches between two states: `true`/`false`

### checkboxlist · version 1

Type: `component`

A list of checkboxes built from a data source or your own items.

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

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

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

__Checkboxlist data-source needs to contain__:

```js
[
	{  id: 1, name: 'Ruby' },
	{  id: 2, name: 'PHP' },
	{  id: 3, name: 'node.js' },
	{  id: 4, name: 'Python', }
]
```

### color · version 1

Type: `component`

Lets the user pick a colour.

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

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

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

The component allows selecting a color from the offered list.

### dropdown · version 1

Type: `component`

A list to choose one item from a data source or your own items.

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

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

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

__Dropdown data-source needs to contain__:

```js
[
	{ id: 1, name: 'Nothing' },
	{ id: 2, name: 'jComponent' },
	{ id: 3, name: 'Angular.js' },
	{ id: 4, name: 'React' }
]
```

### hiddenvalue · version 1

Type: `component`

Adds a value to the data without showing anything.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `fixed` | `Boolean` | no | `false` | **Enable readonly fixed value defined below** in the settings form. |
| `type` | `String` | no | `string` | **Type** in the settings form. One of `string` (String), `number` (Number), `boolean` (Boolean), `date` (Date), `object` (Object), `json` (JSON). |
| `value` | `String` | no |  | **Value** in the settings form. |

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

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

The component sets a hidden value to the model.

### icon · version 1

Type: `component`

Lets the user pick an icon from the Total.js icons.

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

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

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

The component obtaining a list of Total.js icons and search field.

### map · version 1

Type: `component`

Shows a map with a marker that the user can move.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `draggable` | `Boolean` | no | `true` | **Enable changing the position of the marker** in the settings form. |
| `height` | `Number` | no | `200` | **Height** in the settings form. |
| `zoom` | `Number` | no | `11` | **Zoom** in the settings form. |
| `maxzoom` | `Number` | no | `19` | **Max. zoom** in the settings form. |
| `default` | `String` | no |  | **A default GPS position** in the settings form. |

**Inputs:** `gps` (Load GPS).  
**Outputs:** none.

- Loads the external library leaflet from cdnjs.cloudflare.com.
- Other components can follow it: it appears as `@id` in **Read value from**.

This component displays a map, with a position, you set in settings as a map center. In settings you can change the style of this component.

### progressbar · version 1

Type: `component`

Shows progress as a bar.

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

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

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

Progress bar is used to visualize the progression of an extended operation.

### radiobutton · version 1

Type: `component`

A group of radio buttons built from a data source or your own items.

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

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

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

__Radio button__ data-source needs to contain:

```js
[
	{ id: 1, name: 'Ruby', },
	{ id: 2, name: 'PHP', },
	{ id: 3, name: 'Node' },
	{ id: 4, name: 'Python' }
]
```

### richtext · version 1

Type: `component`

A rich text editor based on TinyMCE.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `apikey` | `String` | no | `testapikey` | **API Key** in the settings form. |
| `plugins` | `String` | no |  | **Plugins** in the settings form. |
| `autosave` | `Boolean` | no |  | **Autosave** in the settings form. |

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

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

Configure this component with your API key, the plugins and autosave.

- **API Key**: the API key that the editor requires.
- **Plugins**: the TinyMCE plugins to enable in the editor.
- **Autosave**: turns autosave on or off.

### slider · version 1

Type: `component`

Lets the user pick a number by dragging a handle.

| 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**.

Component allows to select a single value, but highlights with a range selection from the min value to the current handle value.

### textarea · version 1

Type: `component`

A text field with several lines.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `error` | `String` | no |  | **Error message** in the settings form. |
| `help` | `String` | no |  | **Help message** in the settings form. |
| `placeholder` | `String` | no |  | **Placeholder** in the settings form. |
| `icon` | `String` | no |  | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `height` | `Number` | no | `70` | **Height** in the settings form. |
| `maxlength` | `Number` | no |  | **Max. length** in the settings form. |
| `required` | `Boolean` | no | `false` | **Required** in the settings form. |
| `resize` | `Boolean` | no |  | **Allow vertical resize** in the settings form. |
| `bold` | `Boolean` | no |  | **Use bold font** in the settings form. |
| `monospace` | `Boolean` | no |  | **Use monospace font** in the settings form. |

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

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

The Multiline Textbox is used to edit or display multiple lines of text. You can allow resizing the height of the element.

### textbox · version 1

Type: `component`

A one-line field for text, numbers, dates, email addresses and other types.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `type` | `String` | no | `string` | **Type** in the settings form. One of `string` (String), `number` (Number), `date` (Date), `datetime` (Date time), `email` (Email), `zip` (ZIP), `phone` (Phone number), `password` (Password). |
| `default` | `String` | no |  | **Default value** in the settings form. |
| `error` | `String` | no |  | **Error message** in the settings form. |
| `help` | `String` | no |  | **Help message** in the settings form. |
| `placeholder` | `String` | no |  | **Placeholder** in the settings form. |
| `icon` | `String` | no |  | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `decimals` | `Number` | no |  | **Number of decimals** in the settings form. |
| `maxlength` | `Number` | no |  | **Max. length** in the settings form. |
| `min` | `Number` | no |  | **Min. value** in the settings form. |
| `max` | `Number` | no |  | **Max. value** in the settings form. |
| `required` | `Boolean` | no | `false` | **Required** in the settings form. |
| `bold` | `Boolean` | no |  | **Use bold font** in the settings form. |
| `monospace` | `Boolean` | no | `false` | **Use monospace font** in the settings form. |

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

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

A Textbox is an input element that allows to get input from the user. It allows the user either to edit or display the input values.

__Types__:

- `string`
- `number`
- `date`
- `datetime`
- `email`
- `ZIP`
- `phone number`
- `password`

### togglebutton · version 1

Type: `component`

A switch with the value true or false.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `required` | `Boolean` | no | `false` | **Required** in the settings form. |
| `label` | `Boolean` | no | `false` | **Hide label** in the settings form. |
| `fullwidth` | `Boolean` | no | `false` | **Full width** in the settings form. |

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

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

Button that switches between two states: `true`/`false`

### togglegroup · version 1

Type: `component`

A group of buttons where the user selects one.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datasource` | `String` | no |  | **Datasource** in the settings form. A component (`@id`), a code list or a data view. |
| `default` | `Number` | no | `1` | **Default** in the settings form. |
| `icon` | `String` | no |  | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `required` | `Boolean` | no | `false` | **Required** in the settings form. |
| `nolabel` | `Boolean` | no | `false` | **Hide label** in the settings form. |
| `background` | `Boolean` | no | `true` | **Apply background** in the settings form. |
| `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. |

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

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

__Toggle group__ data-source needs to contain:

```js
[
	{ id: 1, name: 'Ruby', icon: 'ti ti-totaljs' }, // icon is optional
	{ id: 2, name: 'PHP' },
	{ id: 3, name: 'Node' },
	{ id: 4, name: 'Python' }
]
```

### toolbar · version 1

Type: `component`

A row of buttons with a label; each button sends data to an input.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `label` | `String` | no |  | **Label** in the settings form. |
| `items` | `Array` | no |  | The buttons of the toolbar, edited in the settings form. |
| `border` | `Boolean` | no | `false` | **Border bottom** in the settings form. |
| `padding` | `Boolean` | no | `false` | **Enable padding** in the settings form. |

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

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

Series of buttons on a single line with headline.
