+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "Switch"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## Switch variable
### Switch variable
Signature
```typescript
Switch: React.ForwardRefExoticComponent & React.RefAttributes>
```
Import
```typescript
import { Switch } from '@grafana/ui';
```