@wocart/theme / index / 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?
optionaldescription?: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
Editor-facing name, the same in every language or translated.
Inherited from
FieldDefinitionBase.label
required?
optionalrequired?:boolean
Inherited from
FieldDefinitionBase.required
visibleIf?
optionalvisibleIf?:FieldCondition
When an editor shows the field; absent: always. The renderer ignores it.
Inherited from
FieldDefinitionBase.visibleIf