number
A numeric input field. Use it for quantities, amounts, or any integer/decimal value.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
type | "number" | Yes | Field type identifier |
label | string | Yes | Label shown in the builder |
default | number | No | Default value (0 if omitted) |
Usage
- schema.json
- Template
- Output
{
"amount": {
"type": "number",
"label": "Amount",
"default": 0
}
}
<span>{{ widget.settings.amount }}</span>
{
"amount": 99
}
Interactive Preview
Interactive Preview
Live Output
{
"amount": 5
}