ReplicatorField

The Replicator field type used in Statamic.

Type Definition

Flexible content builder with repeatable sets.

type 
ReplicatorField
<
T
extends
Record
<string, any> =
Record
<string, any>> =
ReplicatorFieldSet
<
T
>[];
Union of set types (must include type and id properties)
Must always have a type and id property.

ReplicatorFieldSet

Structure for Replicator set instances.

Will always require a type and id property.

type 
ReplicatorFieldSet
<
T
extends
Record
<string, any> =
Record
<string, any>> = {
type
: string;
id
: string } &
T
;
T
Record<string, any> & { type: string, id: string }
Any properties you want to add to the item.
Must always have a type and id property.