> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turbostack.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Switch

A control that allows the user to toggle between checked and not checked.

<img src="https://mintcdn.com/ravitechsolutions/jCk1IPeJr8ul3nyO/images/components/switch.png?fit=max&auto=format&n=jCk1IPeJr8ul3nyO&q=85&s=1af6fcee9c33ea671490f721651a8097" alt="Switch Component" width="72" height="54" data-path="images/components/switch.png" />

## Usage

```ts theme={null}
import { Switch } from '@turbostack/ui'
```

```tsx theme={null}
const [value, setValue] = useState(false);

return <Switch value={value} onClick={() => setValue(!value)} />
```
