Skip to main content

Repeater components

Repeater field#

The Repeater component renders a repeater field with given child components.

<Repeater field="tasks" label="Todo list" orderBy="content">
<TextAreaField field="content" label="Task" />
</Reapeater>

Props#

PropDescription

field

string

The name of the column in Contember schema where to store data.

Required

label

ReactNode

The label for the field.

Required

sortableBy

undefined | string

The name of the column in Contember schema that is used to sort the options.

orderBy

undefined | string

The name of the column in Contember schema that is used to order the options.