Slider
Install
Usage
Every slider should have its own state. And if we have more than one slider on the same page, each slider should have a unique id.
Slide Range
Slide Step
Disabled
Show Value
Custom Size
Custom Style
API
Props
Attribute
Description
Type
Default
Required
hasValue
Whether show value in slider button
boolean
false
optional
disabled
Whether ban the slider
boolean
false
optional
activeColor
Color in the fill bar
string
-
optional
inactiveColor
Color in the wrapper bar
string
-
optional
size
Slider size {width:string,height:string}
object
-
optional
sliderSize
Slider button size
object
-
optional
sliderStyle
Custom slider button style from color, fontSize, backgroundColor, borderRadius and borderColor
object
-
optional
range
Slider range {min:string,max:string}
object
-
optional
id
If we have more than one slider on the same page, each slider should have a unique id.
string
-
optional
step
Step length in each slide
number
-
optional
value
Value state
number
-
required
setValue
setState
function
-
required
Last updated