# SwitchControlDefinition

An on and off choice. Its value is the string `true` or `false`.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { SwitchControlDefinition } from "@mapcairn/core";
 
interface SwitchControlDefinition extends ControlBase
```

## Properties

### default

```ts
readonly default: boolean;
```

Whether it starts on.

### kind

```ts
readonly kind: "switch";
```

Tells a switch from the other control kinds.

## See also

- [`ControlBase`](https://docs.mapcairn.com/api/core/ControlBase.md)

Source: [packages/core/src/layers/definition.ts:89](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L89)
