> For the complete documentation index, see [llms.txt](https://docs.blynk.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blynk.io/en/blynk.console/widgets-console/segmented-switch.md).

# Segmented Switch

{% hint style="warning" %}
***Note:*** please remember that web and mobile app widgets are set up separately in the Web Dashboard and Mobile App Dashboard sections correspondingly. They can still use the same datastreams to access the same data (Map widget is an exception – a different codebase is used for Map on mobile and web).
{% endhint %}

Unlike the basic switch widget that can only have two statuses, with Segmented Switch you can switch between up to 10 statuses or options. This widget works with **Enum** and **Int** Datastreams.

### Settings

* Name the Segmented Switch widget by filling out the TITLE field or leave it blank if you want to hide the widget name
* **Datastream** – access the list of available Datastreams by clicking on **Choose Source** (a dropdown list will be shown). If you use Enum Datastream, all options will be automatically loaded.
* **Color** – pick the color for the active Switch status background from the palette or define it by color number input
* Choose whether you want to use **Icons** next to each label for options or just labels
* Set **Options** in the corresponding fields. Add up to 10 options to switch between

![](https://1839001309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBFTVMf7L6S67HOuqVC%2Fuploads%2FjOy4RtDDQ5P5G0XpUOSm%2Foptions.png?alt=media\&token=a2bf92b8-af35-444e-a080-eea7d39b1948)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.blynk.io/en/blynk.console/widgets-console/segmented-switch.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
