string
A single-line text input. Use it for short content like titles, button labels, or links.
When to use
Use string for short text values. For longer, multi-line content use text instead.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
type | "string" | Yes | Field type identifier |
label | string | Yes | Label shown in the builder |
default | string | No | Default value (empty string if omitted) |
Usage
- schema.json
- Template
- Output
{
"title": {
"type": "string",
"label": "Title",
"default": ""
}
}
<p>{{ widget.settings.title }}</p>
{
"title": "Hello world"
}
Interactive Preview
Interactive Preview
Live Output
{
"title": "Hello world"
}