react-gradient-color-picker
react-gradient-color-picker copied to clipboard
The ColorPicker component does not hide some of its children
Hello,
I'm facing an issue with hiding some of the children in the Controls component. When I set the boolean props hideColorGuide, hideAdvancedSliders, and hideInputType in my component, those elements are not removed from the DOM
Basic code
function App() {
const [color, setColor] = useState("rgba(255,255,255,1)");
return (
<div>
<h2>Color picker</h2>
<ColorPicker
value={color}
onChange={setColor}
hideColorGuide
hideAdvancedSliders
hideInputType
/>
</div>
);
}
Environment
NodeJs: v20.12.2 Vite: v5.0.8 react: v18.2.0 react-best-gradient-color-picker: v3.0.10,