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

***

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

# Interface: ImageFieldDefinition

`image`: one image from the store's own media. The value is a
`MediaReference` — the object's key in the store's media bucket is its
identity; the URL is derived at render from the store's media domain. A
theme cannot know a store's media, so an image field has no default: the
component renders its own fallback when no image is chosen.

## Extends

- `FieldDefinitionBase`

## Properties

### 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**: `"image"`

***

### 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`
