Skip to content
Strife Docs

Reference Field Reference

fields.repeatable()

A repeatable list of a single primitive editor.

A repeatable list of a single inner editor. Maps to editor { name: 'str-repeatable', type: 'repeatable' }, with of compiled to the inner editor id in options.availableTypes.

Warning:

The feature gate only decides whether Studio's template designer offers Repeatable. A repeatable field from a pushed schema shows in Strife Studio's editor panel either way. The new interface shows it too, each row the field of names, except of: 'labelGroup', which doesn't show there yet.

Example

TypeScript
fields.repeatable({
  label: 'Tags',
  of: 'text',
  size: 10,
})

Options

OptionTypeRequiredDescription
label
string
Yes
Label shown to editors in Strife Studio.
of
'text' | 'number' | 'date' | 'datetime' | 'link'
Yes
The editor repeated for each row.
description
string
No
Not shown in Studio's editor panel.
propertyName
string
No
Override the stored property name.
size
number | null
No
Maximum number of rows.

No localizable option.

Output type

Depends on of: number → number[], link → Link[], everything else (text, date, datetime) → string[].

See also

  • Repeatable — the same editor, documented from the Strife Studio UI side.
  • fields.multiInput() — a similar repeatable-primitive shape with a different editor and a wider set of input types.