Stat
Data displayOne numeric KPI: label, short value (number or <10 chars like '$84k'), optional delta (e.g. '+4.2%'), caption. Not for sentences.
Props
Generated from the Zod definition. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.
| Prop | Type | Required | Description |
|---|---|---|---|
| label | string | Yes | Short label shown with the value or control. |
| value | string | number | Yes | The value shown, or the bound value an input reads and writes. |
| delta | string | No | Change versus a previous period, for example +4.2%. |
| trend | "up" | "down" | "flat" | No | Direction of the change: up, down or flat. |
| caption | string | No | Small muted line under the main content. |
| tone | "default" | "positive" | "negative" | "warning" | "info" | "accent" | No | Color tone that carries meaning (positive, negative, warning...). |
| icon | string | No | Lucide icon name (kebab-case). |
Used by templates
Fixed-schema templates that include Stat. Try them in the playground.