Renders two distinct code snippets side-by-side or stacked, without
| Surface | Note |
|---|---|
| googlechat | Renders code snippets stacked vertically instead of side-by-side. |
| Renders code snippets stacked vertically instead of side-by-side. |
| Field | Type | |
|---|---|---|
| left_code | string | required |
| right_code | string | required |
| language | string | required |
| left_label | string | required |
| right_label | string | required |
{
"type": "code_snippet_pair",
"left_code": "Left code",
"right_code": "Right code",
"language": "json",
"left_label": "Left label",
"right_label": "Right label"
}
{
"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"
]
}
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 →