-
Notifications
You must be signed in to change notification settings - Fork 234
/
react-input-range.d.ts
40 lines (36 loc) · 955 Bytes
/
react-input-range.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import * as React from 'react';
export interface Range {
max: number;
min: number;
}
export interface InputRangeClassNames {
activeTrack: string;
disabledInputRange: string;
inputRange: string;
labelContainer: string;
maxLabel: string;
minLabel: string;
slider: string;
sliderContainer: string;
track: string;
valueLabel: string;
}
export interface InputRangeProps {
allowSameValues?: boolean;
ariaLabelledby?: string;
ariaControls?: string;
classNames?: InputRangeClassNames;
disabled?: boolean;
draggableTrack?: boolean;
formatLabel?: (value: number, type: string) => string;
maxValue?: number;
minValue?: number;
name?: string;
onChange: (value: Range | number) => void;
onChangeStart?: (value: Range | number) => void;
onChangeComplete?: (value: Range | number) => void;
step?: number;
value: Range | number;
}
export default class InputRange extends React.Component<InputRangeProps, any> {
}