HuePicker

new HuePicker(options)

Parameters:
NameTypeDescription
optionsobject
Properties
NameTypeDescription
onSelectfunctioncalled with hex color on each hue change
onCancelfunctioncalled when picker is dismissed without selection

Classes

HuePicker

Methods

open(anchorEl, initialHue)

Renders and positions the picker popover anchored below `anchorEl`.
Parameters:
NameTypeDefaultDescription
anchorElHTMLElementelement to anchor below (e.g. a color swatch)
initialHuenumber0hue (0–360) to pre-position the cursor at

remove()

Removes the picker from the DOM and cleans up all listeners.