# SliderChangeDetails (@salmonui/inputs/slider)

> The SliderChangeDetails interface of @salmonui/inputs/slider: Second argument of onValueChange and onValueCommit.

Canonical: https://salmonui.dev/docs/reference/inputs/slider/SliderChangeDetails

```ts
import type { SliderChangeDetails } from '@salmonui/inputs/slider';
```

Entry index: https://salmonui.dev/docs/reference/inputs/slider (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/slider.md).

## Reference

Kind: interface

```ts
interface SliderChangeDetails {
    readonly source: 'pointer' | 'touch' | 'keyboard' | 'api';
    readonly reason: 'drag' | 'keyboard' | 'input' | 'reset';
    readonly thumb: 0 | 1;
}
```

Second argument of `onValueChange` and `onValueCommit`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: 'pointer' \| 'touch' \| 'keyboard' \| 'api';` |  |  |
| `reason` | `readonly reason: 'drag' \| 'keyboard' \| 'input' \| 'reset';` |  | `'drag'` (pointer), `'keyboard'` (arrow, Page, Home, End keys), `'input'` (a native input event, e.g. assistive technology) or `'reset'` (form reset). |
| `thumb` | `readonly thumb: 0 \| 1;` |  | The thumb that moved: 0 (single or start) or 1 (end). |
