react-color icon indicating copy to clipboard operation
react-color copied to clipboard

Some prop types of Saturation are not exported

Open hungdoansy opened this issue 3 years ago • 1 comments

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.

hungdoansy avatar Jul 22 '21 07:07 hungdoansy

I have the same problem, any update?

hejf1990 avatar May 11 '22 10:05 hejf1990