<Slidervalue={value}onChange={(val: number | number[])=>{setValue(val as number)}}style={{width:400}}/>
Set step
<SliderdefaultValue={0}onChange={(val: number | number[])=>{setValue(val as number)}}step={2}showTicksstyle={{width:400}}/>
Set input range
const[value, setValue]= React.useState(0)<SlideronChange={(val: number | number[])=>{setValue(val as number)}}min={0}max={20}step={2}showTicksstyle={{width:400}}/>
Set tick's mark
const[value, setValue]= React.useState(0)<SlideronChange={(val: number | number[])=>{setValue(val as number)}}step={2}marks={{0:"0km",5:"5km",10:"10km",15:"15km",}}style={{width:400}}/>
Show number input
const[value, setValue]= React.useState(0)<SlidershowInputonChange={(val: number | number[])=>{setValue(val as number)}}step={1}marks={{0:"0km",5:"5km",10:"10km",15:"15km",}}style={{width:400}}/>