> For the complete documentation index, see [llms.txt](https://docs.reactnativestarter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.reactnativestarter.com/components/toggle.md).

# Toggle

Switches toggle the state of a single setting on or off.

```jsx
import { Checkbox } from '../components'

<Switch value={val} onValueChange={(val) => !val} />
```

## Properties

| Name          | Type                | Description                                        |
| ------------- | ------------------- | -------------------------------------------------- |
| value         | `bool`              | Whether component is checked. Defaults to *false*. |
| onValueChange | `(boolean) => void` | Called when toggle should switch it's value.       |
| disabled      | `bool`              | Makes toggle disabled.                             |
