mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* update to support 1.0 version of react-slider * adding comments from the source is a nice touch * setting esModuleInterop to false
16 lines
388 B
TypeScript
16 lines
388 B
TypeScript
import * as React from 'react';
|
|
import ReactSlider = require('react-slider');
|
|
|
|
class Slider extends React.Component<ReactSlider.ReactSliderProps> {
|
|
render() {
|
|
return (
|
|
<ReactSlider
|
|
snapDragDisabled
|
|
trackClassName="classnameForBar"
|
|
withTracks={false}
|
|
{...this.props}
|
|
/>
|
|
);
|
|
}
|
|
}
|