Color Field
type: "color"
A color picker with opacity.
Additional Properties
| Property | Type | Description |
|---|---|---|
| defaultValue | ValueColor | The default color. |
Example
mobro-widget-config.json
{
"config": [
{
"name": "font_color",
"label": "Font color",
"type": "color",
"defaultValue": {
"hex": "#ffffff",
"alpha": 1
}
}
]
}
Usage
To read the value of this field in a widget, use
useColorField.