[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [index](../README) / ColorFieldDefinition

# Interface: ColorFieldDefinition

`color`: a hex color, `#rgb` or `#rrggbb`. Not translatable.

## Extends

- `FieldDefinitionBase`

## Properties

### default?

> `optional` **default?**: `string`

***

### description?

> `optional` **description?**: [`LocalizedText`](../type-aliases/LocalizedText)

Editor-facing help text.

#### Inherited from

`FieldDefinitionBase.description`

***

### key

> **key**: `string`

The exact prop name the component expects.

#### Inherited from

`FieldDefinitionBase.key`

***

### kind

> **kind**: `"color"`

***

### label

> **label**: [`LocalizedText`](../type-aliases/LocalizedText)

Editor-facing name, the same in every language or translated.

#### Inherited from

`FieldDefinitionBase.label`

***

### required?

> `optional` **required?**: `boolean`

#### Inherited from

`FieldDefinitionBase.required`

***

### visibleIf?

> `optional` **visibleIf?**: [`FieldCondition`](../type-aliases/FieldCondition)

When an editor shows the field; absent: always. The renderer ignores it.

#### Inherited from

`FieldDefinitionBase.visibleIf`
