Add style prop CommonApiProps

This commit is contained in:
Jacob Froman
2017-12-15 10:00:21 -06:00
parent 8295e5c233
commit dac66d0de3
3 changed files with 8 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
This package contains type definitions for rc-slider (https://github.com/react-component/slider).
Additional Details
* Last updated: Tue, 24 Oct 2017
* Last updated: Fri, 15 Dec 2017
* Dependencies: react
* Global values: none

View File

@@ -3,6 +3,7 @@
// Definitions by: Marcinkus Mantas <https://github.com/mantasmarcinkus>
// Alexander Mattoni <https://github.com/mattoni>
// Austin Turner <https://github.com/paustint>
// Jacob Froman <https://github.com/j-fro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -91,6 +92,11 @@ export interface CommonApiProps {
*/
tipFormatter?: ((value: any) => any | undefined) | null;
/**
* The style used for the background and container. (both for slider(Object) and range(Array of Object), the array will be used for mutli handle follow element order)
*/
style?: React.CSSProperties[] | React.CSSProperties;
/**
* The style used for handle. (both for slider(Object) and range(Array of Object), the array will be used for mutli handle follow element order)
*/

View File

@@ -35,6 +35,7 @@ ReactDOM.render(
onAfterChange={() => { }}
defaultValue={0.1}
value={0.1}
style={{backgroundColor: 'plum'}}
dotStyle={{backgroundColor: 'antiquewhite'}}
activeDotStyle={{backgroundColor: 'antiquewhite'}}
/>,