Color picker
The color picker allows you to easily select a color value instead of manually using a hex code.
The basic syntax for the color picker is very simple:
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.
The above code will generate a color picker UI with the label "Primary color" and default color set to #E7AE12