Skip to main content
Version: 2.0.0-alpha

Repeat

Field

You can use a repeat field when you want to save multiple values in a property. For example, you may want to save multiple pieces of text, like tags.

Please note that if you use an array property which uses an of prop, the resulting field may be one of the specialized ones (such as select, file upload or reference field). The repeat field will be used in the rest of cases.

This fields allows reordering of its entries.

This component can be expanded or collapsed by default.

import { buildProperty } from "@camberi/firecms";

buildProperty({
dataType: "array",
name: "Tags",
of: {
dataType: "string",
previewAsTag: true
},
expanded: true
});

The data type is array.

Internally the component used is RepeatFieldBinding.