Skip to main content
The Array field stores an ordered array of objects. Every row uses the same set of fields, and those fields can include other containers. Arrays suit both simple and complex repeating content, including:
  • Image sliders with an upload field and caption
  • Navigation items with a relationship field and an “open in new tab” checkbox
  • Event timeslots with start and end dates, a label, and a related page
To create an Array field, set type to array and provide its row fields:
Generated records contain an array under the field name. Each row receives an id automatically.

Config options

Admin options

Array fields inherit the standard field admin options and add:

Example

This slider requires between two and ten rows and gives every row a title, image, and caption:

Custom components

Use the public field component and FrogBot component type for a custom field wrapper:
A client row label can read the current row without receiving custom props:
Configure it with admin.components.RowLabel: '/components/LinkRowLabel#LinkRowLabel'. Use ArrayFieldClientProps for a client field wrapper. Use ArrayFieldLabelServerProps or ArrayFieldLabelClientProps to replace only the field label while retaining the default field UI.