A function that is called whenever a new color is picked.
The newly selected color, as a CSS color string.
All color themes supported by the color picker. More themes might be added in the future.
All theme modes.
Converts an input field to a color picker input.
Generated using TypeDoc
Color format used by the color picker. The format affects which value is shown in the input field.
hex
outputs#RRGGBB
or#RRGGBBAA
.rgb
outputsrgb(R, G, B)
orrgba(R, G, B, A)
.hsl
outputshsl(H, S, L)
orhsla(H, S, L, A)
.auto
guesses the format from the active input field. Defaults tohex
if it fails.mixed
outputs#RRGGBB
when alpha is 1; otherwisergba(R, G, B, A)
.