Code Snippet Pair

Renders two distinct code snippets side-by-side or stacked, without

Surfaces
webmeet-stageapps-script-web
Degraded on
SurfaceNote
googlechatRenders code snippets stacked vertically instead of side-by-side.
emailRenders code snippets stacked vertically instead of side-by-side.
Fields
FieldType
left_codestringrequired
right_codestringrequired
languagestringrequired
left_labelstringrequired
right_labelstringrequired
Example payload
{
  "type": "code_snippet_pair",
  "left_code": "Left code",
  "right_code": "Right code",
  "language": "json",
  "left_label": "Left label",
  "right_label": "Right label"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:code_snippet_pair",
  "displayName": "Code Snippet Pair",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/code_snippet_pair",
  "capabilities": [
    "web",
    "meet-stage",
    "apps-script-web"
  ],
  "description": "Renders two distinct code snippets side-by-side or stacked, without",
  "representativeQueries": [
    "show a two code blocks side by side without diff highlighting diff highlighting",
    "renders two distinct code snippets side-by-side or stacked, without",
    "render a code snippet pair"
  ]
}
← 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 →