Metric Row

Horizontal strip of static metrics — value, label, optional prefix/suffix and trend indicator. Cleaner than animated_counter for non-animated use.

Surfaces
webapps-script-webpdf
Fields
FieldType
colsinteger (optional, default 4)optional
accentstring (optional, default hex for all metrics)optional
metricsarray (required, alias items). Each item: {value, label, prefix?, suffix?, sub?, accent?, trend? ("up"|"down")}required
Example payload
{
  "type": "metric_row",
  "metrics": [
    {
      "label": "Revenue",
      "value": "$1.2M",
      "trend": "up"
    },
    {
      "label": "Users",
      "value": "42K",
      "trend": "up"
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:metric_row",
  "displayName": "Metric Row",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/metric_row",
  "capabilities": [
    "web",
    "apps-script-web",
    "pdf"
  ],
  "description": "Horizontal strip of static metrics \u2014 value, label, optional prefix/suffix and trend indicator. Cleaner than animated_counter for non-animated use.",
  "representativeQueries": [
    "show a horizontal metric strip \u2014 value, label, prefix/suffix, trend up/down",
    "horizontal strip of static metrics \u2014 value, label, optional prefix/suffix and trend indicator. clean",
    "render a metric row"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →