Here is my code
const CustomColorPicker = ({ id, mode }) => <ColorPickerComponent id={id} mode={mode} modeSwitcher={false} inline showButtons={false} change={change} />;
const ColorPicker = () => (
<div className="m-2 md:m-10 mt-24 p-2 md:p-10 bg-white rounded-3xl">
<Header category="App" title="Color Picker" />
<div className="text-center">
<div id="preview" />
<div className="flex justify-center items-center gap-20 flex-wrap">
<div>
<p className="text-2xl font-semibold mt-2 mb-4">Inline Pallete</p>
<CustomColorPicker id="inline-palette" mode="Palette" />
</div>
<div>
<p className="text-2xl font-semibold mt-2 mb-4">Inline Picker</p>
<CustomColorPicker id="inline-picker" mode="Picker" />
</div>
</div>
</div>
</div>
);
I want to be able to choose a color from the color pallete and that color be automatically selected from the color picker so i can pick the exact shade