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

# Icon Toggle

### Installation

```jsx
import { PillToggle, PillToggleProps } from 'hc-mobile-app-ui';
```

### Example

### Props

| Name     | Type                             | Description                                                            |
| -------- | -------------------------------- | ---------------------------------------------------------------------- |
| disabled | boolean                          | Determines if the toggle control is disabled or not. Defaults to false |
| selected | number \| string                 | Value of the already selected option                                   |
| options  | Array<**ItemProps**> (See below) | Array of items                                                         |

#### Item Props

| Name     | Type             | Description                                            |
| -------- | ---------------- | ------------------------------------------------------ |
| label    | string           | Label of the option                                    |
| value    | string \| number | Value for the option                                   |
| content  | function         | A function that renders the content inside the button. |
| disabled | boolean          | If true, disables the current option                   |
| onPress  | function         | Function to be called when pill is pressed             |


---

# 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 dynamically by asking a question.

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

```
GET https://raoufr.gitbook.io/mobile-app-ui-docs/components/icon-toggle.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.
