mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[@rc-slider] Add types for reverse prop (#35653)
* [@rc-slider] Add types for reverse prop * linting fix
This commit is contained in:
parent
47bce5e74f
commit
56bf14f01f
7
types/rc-slider/index.d.ts
vendored
7
types/rc-slider/index.d.ts
vendored
@ -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')
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user