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

Some prop types of Saturation are not exported #831

Open hungdoansy opened 3 years ago

hungdoansy commented 3 years ago

I tried to import Saturation in my React-Typescript project and use it like below:

import { Saturation } from 'react-color/lib/components/common';

const Component: React.FC = () => {
    return (
        <Saturation
            onChange={handleChange}
            hsl={hsl}
            hsv={hsv}
        />
    );
};

VSCode suggests I missed Color prop and hsl and hsv were not needed. I tried to include Color and remove hsl and hsv. It didn't work. And I know the code above was correct because it worked and I checked source code of Saturation as well.

hejf1990 commented 2 years ago

I have the same problem, any update?

mnurk commented 3 weeks ago

Is there any update for this problem?