mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Based on the component definition, the handleLabel as a string. See: https://github.com/whoisandy/react-rangeslider/blob/master/src/Rangeslider.js#L39
27 lines
777 B
TypeScript
27 lines
777 B
TypeScript
// Type definitions for react-rangeslider 2.2
|
|
// Project: https://github.com/whoisandy/react-rangeslider
|
|
// Definitions by: Riku Kallio <https://github.com/RichieRock>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from 'react';
|
|
|
|
export interface SliderProps {
|
|
disabled?: boolean;
|
|
format?: (value: number) => string | number | undefined;
|
|
handleLabel?: string;
|
|
labels?: { [value: number]: string };
|
|
max?: number;
|
|
min?: number;
|
|
onChange?(value: number): void;
|
|
onChangeComplete?(value: number): void;
|
|
onChangeStart?(value: number): void;
|
|
orientation?: string;
|
|
reverse?: boolean;
|
|
step?: number;
|
|
tooltip?: boolean;
|
|
value: number;
|
|
}
|
|
|
|
export default class Slider extends React.Component<SliderProps> { }
|