Slider.d.ts
1.49 KB
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
41
42
43
44
45
46
47
48
49
50
import React from 'react';
import { GenericSliderProps, GenericSliderState } from './interface';
export interface SliderProps extends GenericSliderProps {
value?: number;
defaultValue?: number;
min?: number;
max?: number;
step?: number | null;
prefixCls?: string;
onChange?: (value: number) => void;
onBeforeChange?: (value: number) => void;
onAfterChange?: (value: number) => void;
vertical?: boolean;
included?: boolean;
disabled?: boolean;
reverse?: boolean;
minimumTrackStyle?: React.CSSProperties;
trackStyle?: React.CSSProperties;
handleStyle?: React.CSSProperties;
tabIndex?: number;
ariaLabelForHandle?: string;
ariaLabelledByForHandle?: string;
ariaValueTextFormatterForHandle?: string;
startPoint?: number;
handle?: (props: {
className: string;
prefixCls?: string;
vertical?: boolean;
offset: number;
value: number;
dragging?: boolean;
disabled?: boolean;
min?: number;
max?: number;
reverse?: boolean;
index: number;
tabIndex?: number;
ariaLabel: string;
ariaLabelledBy: string;
ariaValueTextFormatter: string;
style?: React.CSSProperties;
ref?: React.Ref<any>;
}) => React.ReactElement;
}
export interface SliderState extends GenericSliderState {
value: number;
dragging: boolean;
}
declare const _default: React.ComponentClass<SliderProps, SliderState>;
export default _default;