Horizontal strip of static metrics — value, label, optional prefix/suffix and trend indicator. Cleaner than animated_counter for non-animated use.
| Field | Type | |
|---|---|---|
| cols | integer (optional, default 4) | optional |
| accent | string (optional, default hex for all metrics) | optional |
| metrics | array (required, alias items). Each item: {value, label, prefix?, suffix?, sub?, accent?, trend? ("up"|"down")} | required |
{
"type": "metric_row",
"metrics": [
{
"label": "Revenue",
"value": "$1.2M",
"trend": "up"
},
{
"label": "Users",
"value": "42K",
"trend": "up"
}
]
}
{
"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"
]
}
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 →