# SegmentedControlOption

One choice in a [`SegmentedControl`](https://docs.mapcairn.com/api/map/SegmentedControl.md).

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

## Signature

```ts
import type { SegmentedControlOption } from "@mapcairn/map";
 
interface SegmentedControlOption
```

## Properties

### icon

```ts
readonly icon?: ReactNode;
```

Optional decorative icon shown before the label. It is hidden from assistive technology.

### label

```ts
readonly label: string;
```

The visible text, which is also the item's accessible name.

### lang

```ts
readonly lang?: string;
```

The BCP 47 language the label is written in, when it differs from the
page's, so assistive technology reads it in that language.

### value

```ts
readonly value: string;
```

The value reported through `onValueChange` when this item is chosen.

Source: [packages/map/src/ui/SegmentedControl/SegmentedControl.tsx:10](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/ui/SegmentedControl/SegmentedControl.tsx#L10)
