---
name: Switch
menu: Components
route: /components/switch
---

import { Switch } from './';
import { Playground } from 'docz';

# Switch

Info here

## Import

```js
import { Switch } from '@firstclasspostcodes/sw13';
// or
import { Switch } from '@firstclasspostcodes/sw13/lib/components/Switch';
```

## Example

<Playground>
  <div>
    <Switch color="green" checked={true} />
  </div>
</Playground>

<Playground>
  <div>
    <Switch label="Send email" description="Triggers an email when it happens."/>
  </div>
</Playground>

<Playground>
  <div>
    <Switch invalid label="Send email"/>
  </div>
</Playground>

<Playground>
  <div>
    <Switch disabled label="Send email" description="Triggers an email when it happens."/>
  </div>
</Playground>