Smart elements are code-rendered building blocks that behave like a single element on the canvas but render richer content from the data you bind. They pick up theme colors and fonts automatically.
Available smart elements
- Avatar — circular or rounded image with optional initials fallback.
- Badge / Tag — pill label with variant colors (success, warning, danger, info).
- Rating — 0–5 stars, half-star supported.
- Progress — linear or circular progress bar.
- QR code — auto-generated from a URL or arbitrary string.
- Barcode — Code128 / EAN13.
- Table — column config + row data, with header/zebra styling.
- Icon — Lucide icon picker, color-bound.
Adding a smart element
Open the left toolbar, click Smart, then pick a type. Drop it on the canvas and configure defaults in the right panel.
Binding properties
Every configurable property (image URL, label text, star count, progress value, QR text, table rows…) can be bound to a form field using the smartProp: prefix. Select the element, open Bind, choose a property, and pick a field.
{
"avatar_1": { "smartProp:src": "customerAvatar" },
"rating_1": { "smartProp:value": "reviewStars" },
"table_1": { "smartProp:rows": "lineItems" }
}Themeing
Smart elements pull from the active theme (primary, foreground, muted). Override any color on the element itself when you need a one-off.
Fallbacks
If a bound value is missing at render time, smart elements render the default configured in the editor rather than failing the render.