static-cms/website/content/docs/widget-color.mdx

24 lines
679 B
Plaintext
Raw Normal View History

2022-09-30 11:39:35 -04:00
---
group: Widgets
title: Color
weight: 12
2022-09-30 11:39:35 -04:00
---
The color widget translates a color picker to a color string.
- **Name:** `color`
- **UI:** color picker
- **Data type:** string
- **Options:**
- `default`: accepts a string; defaults to an empty string. Sets the default value
2022-10-20 11:57:30 -04:00
- `allow_input`: accepts a boolean, defaults to `false`. Allows manual editing of the color input value
- `enable_alpha`: accepts a boolean, defaults to `false`. Enables Alpha editing
2022-09-30 11:39:35 -04:00
- **Example:**
```yaml
- { label: 'Color', title: 'color', widget: 'color' }
2022-09-30 11:39:35 -04:00
```
- **Example:**
```yaml
- { label: 'Color', title: 'color', widget: 'color', enable_alpha: true, allow_input: true }
2022-09-30 11:39:35 -04:00
```