Open hungdoansy opened 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.
I have the same problem, any update?
Is there any update for this problem?
I tried to import Saturation in my React-Typescript project and use it like below:
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.