Components
ColorWheel
Concentric saturation/lightness pad + hue arc picker.
Usage
Best practices
ColorWheelis fully controlled - own theColorWheelValue({h,s,l}) and set it fromonChange; it stores nothing internally, so dropping the update freezes the picker.Values are HSL (
h0–360,s/l0–100), not hex - convert at your storage boundary; a hex string won't position the handles.onChangefires on every pointer drag and arrow-key step - throttle persistence/network writes downstream rather than reacting to each intermediate value.
Props
Also exports
- interface
ColorWheelProps - interface
ColorWheelValue - const
WHEEL_CENTER_X - const
WHEEL_CENTER_Y