slider icon indicating copy to clipboard operation
slider copied to clipboard

Customize to insert value inside Handle

Open Piero87 opened this issue 7 years ago • 3 comments

Hi, I want know if it's possibile to customize it to add the current value inside the handle, for example like this:

schermata 2018-05-22 alle 18 12 44

Piero87 avatar May 22 '18 16:05 Piero87

You can. The Handle component can take children. Like this:

import Slider, { Handle } from 'rc-slider'

<Slider
    handle={ (handleProps) => {
        return (
            <Handle { ...handleProps }>
                <MyAwesomeIconComponent />
            </Handle>
        )
    }}
 />

draperunner avatar Jan 07 '19 14:01 draperunner

Can we still use the solution @draperunner? import { Handle } from 'rc-slider' is not available in 10.1.1.

diregraph avatar Feb 07 '23 09:02 diregraph

I have no idea. I haven't used this library in years.

draperunner avatar Feb 07 '23 09:02 draperunner