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 doesn't show repeatable fields 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.
searchable
boolean
No
Stored on the template; nothing uses it today.
filterable
boolean
No
Stored on the template; nothing uses it today.
protected
boolean
No
Stops the field from being edited or removed in Studio's template designer. No effect in the editor panel.
propertyName
string
No
Override the stored property name.
size
number | null
No
Maximum number of rows.
hint
string | null
No
Display hint shown above the list in the editor.

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.