# ControlBase

The fields every layer control has, whatever its kind.

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

## Signature

```ts
import type { ControlBase } from "@mapcairn/sdk/browser";
 
interface ControlBase
```

## Properties

### description

```ts
readonly description?: DefinitionText;
```

Optional one-line help under the control.

### enabledWhen

```ts
readonly enabledWhen?: ControlCondition;
```

Makes the control usable only while another control has one of some values.

### id

```ts
readonly id: string;
```

Unique inside the layer. Lowercase letters, digits and hyphens, starting with a letter.

### label

```ts
readonly label: DefinitionText;
```

The control's name, shown beside it.

## See also

- [`DefinitionText`](https://docs.mapcairn.com/api/sdk/browser/DefinitionText.md)
- [`ControlCondition`](https://docs.mapcairn.com/api/sdk/browser/ControlCondition.md)
