Reference Field Reference
fields.video()
Video field. Stored shape isn't finalized yet, so the read type is unknown.
Video field. Maps to editor { name: 'str-video', type: 'video' }.
Warning:
The persisted value shape isn't strongly specified by the underlying editor component (it collects a video URL / embed, but the exact stored shape isn't finalized) — the generated read type is unknown. Narrow it at the call site. This may be tightened in a future minor version once the stored shape is finalized.
Example
fields.video({
label: 'Promo video',
})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. |
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. |
No localizable option, and no video-specific options beyond the common set — this builder is a thin wrapper today.
Output type
unknown.
See also
- Video — the same editor, documented from the Strife Studio UI side.