# Switch

Toggle control for switching between on and off states

## Example

## Switch

Toggle control for switching between on and off states

**Source:** [`packages/appkit-ui/src/react/ui/switch.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/switch.tsx)

### Props

| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `checked` | `boolean` |  | - | - |
| `defaultChecked` | `boolean` |  | - | - |
| `required` | `boolean` |  | - | - |
| `onCheckedChange` | `((checked: boolean) => void)` |  | - | - |
| `asChild` | `boolean` |  | - | - |

### Usage

```tsx
import { Switch } from '@databricks/appkit-ui';

```
