Slider
Overview
slider represents a draggable numeric node.
Exclusive Props
rangeProps, see details Rangeprops
Common Events
valueChangedpressedreleased
Part Style
partStyles.indicator: the selected track; configurablebgColor,bgGradientColor,bgGradientDirectionpartStyles.knob: the drag handle; configurable normal style andstateStyles.pressed
Example
"partStyles": {
"indicator": {
"bgColor": "#2563eb",
"bgGradientColor": "#38bdf8",
"bgGradientDirection": "horizontal"
},
"knob": {
"style": {"bgColor": "#ffffff", "radius": "12dp"},
"stateStyles": {"pressed": {"bgColor": "#dbeafe"}}
}
}