mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[@rc-slider] Add types for reverse prop (#35653)
* [@rc-slider] Add types for reverse prop * linting fix
This commit is contained in:
committed by
Sheetal Nandi
parent
47bce5e74f
commit
56bf14f01f
Vendored
+7
@@ -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 {
|
||||
|
||||
@@ -44,6 +44,7 @@ ReactDOM.render(
|
||||
style={{backgroundColor: 'plum'}}
|
||||
dotStyle={{backgroundColor: 'antiquewhite'}}
|
||||
activeDotStyle={{backgroundColor: 'antiquewhite'}}
|
||||
reverse={true}
|
||||
/>,
|
||||
document.querySelector('.another-app')
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user