1 | /// <reference types="react" />
|
2 | import { AbstractPureComponent } from "../../common";
|
3 | import { HandleHtmlProps } from "./handleProps";
|
4 | import { SliderBaseProps } from "./multiSlider";
|
5 | export interface SliderProps extends SliderBaseProps {
|
6 | /**
|
7 | * Initial value of the slider. This determines the other end of the
|
8 | * track fill: from `initialValue` to `value`.
|
9 | *
|
10 | * @default 0
|
11 | */
|
12 | initialValue?: number;
|
13 | /**
|
14 | * Value of slider.
|
15 | *
|
16 | * @default 0
|
17 | */
|
18 | value?: number;
|
19 | /** Callback invoked when the value changes. */
|
20 | onChange?(value: number): void;
|
21 | /** Callback invoked when the handle is released. */
|
22 | onRelease?(value: number): void;
|
23 | /** A limited subset of HTML props to apply to the slider Handle */
|
24 | handleHtmlProps?: HandleHtmlProps;
|
25 | }
|
26 | /**
|
27 | * Slider component.
|
28 | *
|
29 | * @see https://blueprintjs.com/docs/#core/components/sliders.slider
|
30 | */
|
31 | export declare class Slider extends AbstractPureComponent<SliderProps> {
|
32 | static defaultProps: SliderProps;
|
33 | static displayName: string;
|
34 | render(): JSX.Element;
|
35 | }
|