Product Quantity
Quantity picker (−/+) for the current product. Pair with addToCartButton. single_product only.
Type: "productQuantity"
Quantity picker (−/+) for the current product. Pair with addToCartButton. single_product only.
Note: Template-only element. Valid in templates:
single_product.
Props
| Field | Type | Default | Description |
|---|---|---|---|
label | string | "Jumlah" | Label |
minQuantity | number (1–999) | 1 | Min Qty |
maxQuantity | number (0–9999) | 0 | (0 = no cap, defer to stock) |
size | 'sm'|'md'|'lg' | "md" | Ukuran |
alignment | enum | "left" | Alignment |
Example
{
"id": "pro01abc",
"type": "productQuantity",
"props": {
"label": "Jumlah",
"minQuantity": 1,
"maxQuantity": 0,
"size": "md",
"alignment": "left"
}
}