In one of the latest versions of Flat Color Picker "format" property has been added to enable customizing the default input field that is presented to users, before it was always RGB. However, I found that the value that appears as an argument in "onChange" method is still RGB, no matter which format has been chosen.
For example:
const [color, setColor] = useState("000000");
const setColorFromPicker = useCallback(
(event: FlatColorPickerChangeEvent) => console.log(event.value),
[],
);
return (<FlatColorPicker
value={color}
format="hex"
onChange={onChange}
/>
The value presented in the log will be "rgb(0, 0, 0, 0)" despite the format being set to "hex".
It would be very useful to have this configurable as well. I can see three possible solutions:
Best regards
Wojciech Wąs