API reference: @salmonui/inputs/slider
SliderChangeDetailsinterface
import type { SliderChangeDetails } from '@salmonui/inputs/slider';interface SliderChangeDetails {
readonly source: 'pointer' | 'touch' | 'keyboard' | 'api';
readonly reason: 'drag' | 'keyboard' | 'input' | 'reset';
readonly thumb: 0 | 1;
}
Second argument of onValueChange and onValueCommit.
| Name | Signature | Description |
|---|---|---|
source | readonly source: 'pointer' | 'touch' | 'keyboard' | 'api'; | |
reason | readonly reason: 'drag' | 'keyboard' | 'input' | 'reset'; |
|
thumb | readonly thumb: 0 | 1; | The thumb that moved: 0 (single or start) or 1 (end). |