text
A rich-text textarea input. Use it for longer content like descriptions, paragraphs, or HTML-formatted text.
When to use
Use text for multi-line or rich content. For short single-line values use string instead.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
type | "text" | 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
{
"body": {
"type": "text",
"label": "Description",
"default": ""
}
}
<div>{{ widget.settings.body }}</div>
{
"body": "<h1>عنوان رئيسي</h1><p>هذا نص فقرة طويلة هنا...</p>"
}
Interactive Preview
Interactive Preview
Live Output
{
"body": "This is a longer description text..."
}