casesandberg / react-color

:art: Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
http://casesandberg.github.io/react-color/
MIT License
12.05k stars 922 forks source link

Assign the `id` and pass the `event` into the Picker's `onChange` #852

Open ghost opened 2 years ago

ghost commented 2 years ago

Hello, I am using SketchPicker inside a component that is used several times and that in the various uses I differentiate through id.

The problem is that I can't assign the id and pass the event in the Picker's onChange... what can I do?

Furthermore, is it possible not to have inline css but to have it in a dedicated style sheet?

Thankss