Side By Side Spec

Renders a detailed comparison of two items, displaying their attributes

Surfaces
webmeet-stagepdfapps-script-web
Degraded on
SurfaceNote
googlechatRenders as stacked lists of attributes and values for each item.
Fields
FieldType
item_a_namestringrequired
item_b_namestringrequired
specsarrayrequired
Example payload
{
  "type": "side_by_side_spec",
  "item_a_name": "Item a name",
  "item_b_name": "Item b name",
  "specs": [
    {
      "label": "Weight",
      "value": "1.2 kg"
    },
    {
      "label": "Dimensions",
      "value": "20\u00d715 cm"
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:side_by_side_spec",
  "displayName": "Side By Side Spec",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/side_by_side_spec",
  "capabilities": [
    "web",
    "meet-stage",
    "pdf",
    "apps-script-web"
  ],
  "description": "Renders a detailed comparison of two items, displaying their attributes",
  "representativeQueries": [
    "show a two items compared spec by spec and values side-by-side",
    "renders a detailed comparison of two items, displaying their attributes",
    "render a side by side spec"
  ]
}
← 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 →