# Switch

A Switch is a User Interface two-state toggle component that can select between two options. The user may drag the "thumb" back and forth to choose the selected option, or simply tap to toggle as if it were a checkbox.&#x20;

![](/files/-LHEfKch3EdNoVmDmyIp)

![](https://help.appybuilder.com/assets/tutSwitch3.png)

![](https://help.appybuilder.com/assets/tutSwitch1.png)

This component includes Designer properties that allows for changing the default Text, TrackColor, ThumbColor, etc. It also includes blocks and events for capturing user clicks. Using the Click event, allows you to change properties such as Text, and Thumb/Track colors. The Click event-block is used to capture taps. The Checked block is used to determine the Switch state (checked or not checked)

![](/files/-LHEg8LfJvOFUEOVcntk)

![](/files/-LHEgGpj6ZE4fv5N-3bs)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.appybuilder.com/components/reference/user-interface/switch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
