Skip to content
Strife Docs

Reference Field Reference

fields.multiInput()

A repeatable list of same-typed primitive values (text, number, email, date, etc).

A repeatable list of same-typed primitive values. Maps to editor { name: 'str-multi-input', type: 'multi-input' }. The inputType (default 'text') controls both the UI input and the output element type.

Example

TypeScript
fields.multiInput({
  label: 'Email addresses',
  inputType: 'email',
  sort: true,
})

Options

OptionTypeRequiredDescription
label
string
Yes
Label shown to editors in Strife Studio.
propertyName
string
No
Override the stored property name.
inputType
'text' | 'number' | 'email' | 'url' | 'tel' | 'datetime-local' | 'date' | 'time' | 'month'
No
The repeated input's type. Default 'text'.
sort
boolean
No
Sorts the entries in Studio's display. The stored array keeps the order they were added in.

No localizable option.

Output type

number[] when inputType: 'number'; string[] for every other input type (dates are stored as strings).

See also

  • Multi Input — the same editor, documented from the Strife Studio UI side.
  • fields.repeatable() — a similar repeatable-primitive shape with a narrower type set (including link) and a different editor.