Skip to main content

Repeater

Repeater

The Repeater component renders a repeater with given child components.

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

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.