# SliderProps

Props for [`Slider`](https://docs.mapcairn.com/api/map/Slider.md).

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

## Signature

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

## Properties

### "data-testid"

```ts
readonly "data-testid"?: string;
```

Applied to the outer wrapper. The value readout gets the same id with a
`-value` suffix and the track a `-track` suffix.

### className

```ts
readonly className?: string;
```

Applied to the outer wrapper.

### disabled

```ts
readonly disabled?: boolean;
```

Stops the slider from changing and dims it.

### formatValue

```ts
readonly formatValue: (value: number) => string;
```

Turns a value into the text shown beside the label and announced as the
slider's aria-valuetext. For example, a percentage slider returns "60%"
for 60.

### label

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

The visible label. Required: the slider is named by it.

### max

```ts
readonly max: number;
```

Highest value.

### min

```ts
readonly min: number;
```

Lowest value.

### onValueChange

```ts
readonly onValueChange: (value: number) => void;
```

Called with the next value as the user drags or presses keys.

### step

```ts
readonly step: number;
```

Distance between allowed values. Arrow keys move by one step.

### value

```ts
readonly value: number;
```

The current value. The component is controlled.

Source: [packages/map/src/ui/Slider/Slider.tsx:9](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/ui/Slider/Slider.tsx#L9)
