Skip to main content

Interface: ColorPickerConfig

Defined in: src/interaction/Controls.ts:73

Configuration for a color picker control.

Properties​

label​

label: string

Defined in: src/interaction/Controls.ts:75

Label text displayed above the color picker.


onChange()​

onChange: (color) => void

Defined in: src/interaction/Controls.ts:79

Callback when color changes.

Parameters​

color​

string

Returns​

void


value?​

optional value: string

Defined in: src/interaction/Controls.ts:77

Initial color value. Defaults to '#ffffff'.