Range.d.ts
1.29 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
import React from 'react';
import { SliderProps } from './Slider';
import { GenericSliderProps, GenericSliderState } from './interface';
export interface RangeProps extends GenericSliderProps {
value?: number[];
defaultValue?: number[];
count?: number;
min?: number;
max?: number;
allowCross?: boolean;
pushable?: boolean;
onChange?: (value: number[]) => void;
onBeforeChange?: (value: number[]) => void;
onAfterChange?: (value: number[]) => void;
reverse?: boolean;
vertical?: boolean;
marks?: Record<number, React.ReactNode | {
style?: React.CSSProperties;
label?: string;
}>;
step?: number;
threshold?: number;
prefixCls?: string;
included?: boolean;
disabled?: boolean;
trackStyle?: React.CSSProperties[];
handleStyle?: React.CSSProperties[];
tabIndex?: number | Array<number>;
ariaLabelGroupForHandles?: string | Array<string>;
ariaLabelledByGroupForHandles?: string | Array<string>;
ariaValueTextFormatterGroupForHandles?: string | Array<string>;
handle?: SliderProps['handle'];
}
interface RangeState extends GenericSliderState {
bounds: number[];
handle: number | null;
recent: number;
}
declare const _default: React.ComponentClass<RangeProps, RangeState>;
export default _default;