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

***

[@wocart/theme](../../README) / [index](../README) / 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?

> `optional` **default?**: readonly [`ListItem`](ListItem)[]

***

### description?

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

Editor-facing help text.

#### Inherited from

`FieldDefinitionBase.description`

***

### fields

> **fields**: readonly [`ListItemFieldDefinition`](../type-aliases/ListItemFieldDefinition)[]

***

### itemLabel?

> `optional` **itemLabel?**: `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`](../type-aliases/LocalizedText)

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

#### Inherited from

`FieldDefinitionBase.label`

***

### max?

> `optional` **max?**: `number`

***

### min?

> `optional` **min?**: `number`

***

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