[@rc-slider] Add types for reverse prop (#35653)

* [@rc-slider] Add types for reverse prop

* linting fix
This commit is contained in:
Mojtaba Izadmehr 2019-05-31 21:24:36 +04:30 committed by Sheetal Nandi
parent 47bce5e74f
commit 56bf14f01f
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@
// Deanna Veale <https://github.com/Deanna2>
// Nick Maddren <https://github.com/nicholasmaddren>
// Roman Nevolin <https://github.com/nulladdict>
// Mojtaba Izadmehr <https://github.com/m-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 {

View File

@ -44,6 +44,7 @@ ReactDOM.render(
style={{backgroundColor: 'plum'}}
dotStyle={{backgroundColor: 'antiquewhite'}}
activeDotStyle={{backgroundColor: 'antiquewhite'}}
reverse={true}
/>,
document.querySelector('.another-app')
);