# SegmentedControlDefinition

A choice of a few values, drawn as a segmented control.

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

## Signature

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

## Properties

### default

```ts
readonly default: string;
```

The value of the option chosen until the person picks another.

### kind

```ts
readonly kind: "segmented";
```

Tells a segmented control from the other kinds.

### options

```ts
readonly options: readonly SegmentedOption[];
```

The choices, in the order they are drawn.

## See also

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

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