diff --git a/types/rc-slider/index.d.ts b/types/rc-slider/index.d.ts index 1f16fbe267..247ddab998 100644 --- a/types/rc-slider/index.d.ts +++ b/types/rc-slider/index.d.ts @@ -7,6 +7,7 @@ // Deanna Veale // Nick Maddren // Roman Nevolin +// Mojtaba Izadmehr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -113,6 +114,12 @@ export interface CommonApiProps { * The style used for the active dots. */ activeDotStyle?: React.CSSProperties; + /** + * Reverse the direction of the slider. + * From Left to Right To Right to Left + * @default false + */ + reverse?: boolean; } export interface SliderProps extends CommonApiProps { diff --git a/types/rc-slider/rc-slider-tests.tsx b/types/rc-slider/rc-slider-tests.tsx index 15aea1ff4c..0570d8f05d 100644 --- a/types/rc-slider/rc-slider-tests.tsx +++ b/types/rc-slider/rc-slider-tests.tsx @@ -44,6 +44,7 @@ ReactDOM.render( style={{backgroundColor: 'plum'}} dotStyle={{backgroundColor: 'antiquewhite'}} activeDotStyle={{backgroundColor: 'antiquewhite'}} + reverse={true} />, document.querySelector('.another-app') );