Color picker
Color picker allows user to easily select a color value instead of using a hex color manually.
The basic syntax for the color picker is very simple:
{
"name": "primaryColor",
"label": "Primary color",
"group": "Colors",
"value": "#E7AE12",
"type": "colorpicker",
"outputFormat": "HEX"
}
The available options:
- RGBA or HEX (default)
- RGBA
- HSLA
When RGBA or HSLA is selected, the formatting in the control cannot be changed - there will always be inputs for RGBA or HSLA.
Above code will generate a color picker UI with label "Primary color" and default color set to #E7AE12