---
id: Switch
section: components
cssPrefix: pf-v5-c-switch
propComponents: ['Switch']
ouia: true
---

## Examples

### Basic

```ts file="./SwitchBasic.tsx"
```

### Reversed Layout

```ts file="./SwitchReversed.tsx"
```

### Without label

```ts file="./SwitchWithoutLabel.tsx"
```

### Checked with label

```ts file="./SwitchCheckedWithLabel.tsx"
```

### Disabled

```ts file="./SwitchDisabled.tsx"
```

### Uncontrolled

```ts file="./SwitchUncontrolled.tsx"
```
