Reference Field Reference
fields.text()
Single-line text input. The most commonly used field — stores a plain string.
Single-line text field. Maps to editor { name: 'str-input', type: 'text' } — the same wire shape documented in Text.
Example
fields.text({
label: 'Heading',
localizable: true,
placeholder: 'Enter a heading…',
spellcheck: true,
})Options
| Option | Type | Required | Description |
|---|---|---|---|
label | string | Yes | Label shown to editors in Strife Studio. |
description | string | No | Not shown in Studio's editor panel. |
localizable | boolean | No | When true, output is Record<string, string> (one value per locale) instead of string. |
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. Defaults to the field's key. |
placeholder | string | null | No | Hint text shown in the empty input. |
spellcheck | boolean | No | Enable/disable browser spellcheck on the input. |
Output type
string, or Record<string, string> when localizable: true.
See also
- Text — the same editor, documented from the Strife Studio UI side.