# ControlBase

The fields every layer control has, whatever its kind.

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

## Signature

```ts
import type { ControlBase } from "@mapcairn/core";
 
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/core/DefinitionText.md)
- [`ControlCondition`](https://docs.mapcairn.com/api/core/ControlCondition.md)

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