Customize step markers and numbers
mainYou can customize the visual representation of steps using renderStepNumber and StepMarker.
renderStepNumber
Set this to true to display step numbers automatically under the track. The font size is automatically adjusted based on the number of steps.
StepMarker
Pass a custom component to StepMarker to render a specific component for every step (including the thumb and all other steps). The component receives the following props:
stepMarked:boolean-trueif the thumb is currently on this step.currentValue:number- The current value of the Slider.index:number- The index of this specific step instantiation.min:number- The minimum value of the Slider.max:number- The maximum value of the Slider.