# Toggle

## <mark style="color:green;">class</mark> **UI.Toggle**

{% hint style="info" %}
This documentation is a work in progress. UI scripting is a new feature, and additional content is still being added. Stay tuned for updates!
{% endhint %}

<table><thead><tr><th width="334">Attribute</th><th>Value</th></tr></thead><tbody><tr><td>label</td><td>any <code>string</code></td></tr><tr><td>checked</td><td><code>True | False</code><br><br>Default: <code>False</code></td></tr><tr><td>disabled</td><td><code>True | False</code><br><br>Default: <code>False</code></td></tr><tr><td>visible</td><td>See <a href="../..#visible">Visible</a>.<br><br>Default: <code>True</code></td></tr></tbody></table>

### Events

| Event    | Arguments                 | Description                           |
| -------- | ------------------------- | ------------------------------------- |
| onChange | checked (`True \| False`) | Triggered when the toggle is clicked. |
