> For the complete documentation index, see [llms.txt](https://interopxyz.gitbook.io/ui-plus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interopxyz.gitbook.io/ui-plus/components/control/toggle.md).

# Toggle

Click to toggle between true and false

## Description

Click to toggle between true and false

{% tabs %}
{% tab title="Preview" %}
![](https://97674526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQQ5Dv56AckPkeQ6O9Rf%2Fuploads%2F6wVXUzQRwcRzTsMq3e5I%2FToggle.png?alt=media\&token=02447e6b-b01a-430a-b043-efc34ea4c52b)
{% endtab %}

{% tab title="Location" %}
**Name** | Ui Toggle

**Nickname** | Toggle

**Tab** | Ui

**Panel** | Control

**Division** | 1
{% endtab %}

{% tab title="Inputs" %}
**\*E** | **Element** (*Ui+ Element*) | An optional input for an Element.&#x20;

> If an Element is input it will be updated, if empty a new Element will be created.
>
> The input control must be of the same type as the component

**L** | **Label** (*Text*) | The button label

**S** | **State** (*Bool*) | The control's boolean status
{% endtab %}

{% tab title="Ouputs" %}
**E** | **Element** (*Ui+ Element*) | Ui Element Control.&#x20;
{% endtab %}

{% tab title="Mode" %}
*none*
{% endtab %}
{% endtabs %}

## Usage

![](https://97674526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQQ5Dv56AckPkeQ6O9Rf%2Fuploads%2FVHkqHmz3Ni8DfumTSGsn%2FToggles.gif?alt=media\&token=e9165cc9-1026-4d40-94f4-046d3c8677e1)
