@wocart/theme / index / ListFieldDefinition
Interface: ListFieldDefinition
list: repeatable items — trust badges, questions and answers, slides. Each
stored item is { id, props }: the id is unique within the list, so
reordering never makes one item take another's identity. Item fields resolve
like a section's (per-language text included), except that they cannot
default from the content pack — every item would read the same key.
Extends
FieldDefinitionBase
Properties
default?
optionaldefault?: readonlyListItem[]
description?
optionaldescription?:LocalizedText
Editor-facing help text.
Inherited from
FieldDefinitionBase.description
fields
fields: readonly
ListItemFieldDefinition[]
itemLabel?
optionalitemLabel?:string
The item field (text or textarea) an editor shows as each item's title.
key
key:
string
The exact prop name the component expects.
Inherited from
FieldDefinitionBase.key
kind
kind:
"list"
label
label:
LocalizedText
Editor-facing name, the same in every language or translated.
Inherited from
FieldDefinitionBase.label
max?
optionalmax?:number
min?
optionalmin?:number
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