slider
slider copied to clipboard
Customize to insert value inside Handle
Hi, I want know if it's possibile to customize it to add the current value inside the handle, for example like this:
You can. The Handle component can take children. Like this:
import Slider, { Handle } from 'rc-slider'
<Slider
handle={ (handleProps) => {
return (
<Handle { ...handleProps }>
<MyAwesomeIconComponent />
</Handle>
)
}}
/>
Can we still use the solution @draperunner?
import { Handle } from 'rc-slider' is not available in 10.1.1.
I have no idea. I haven't used this library in years.