Tabbed Code

Renders multiple code snippets organized inside an interactive, multi-tab container component.

Surfaces
webgoogle-apps-script-webmcp-apps
Degraded on
SurfaceNote
google-meet-stageTab switching logic feels slow or becomes unresponsive.
google-chatDisplays all code blocks sequentially or drops all but the first tab.
emailInteractivity is broken so all snippet variations render stacked vertically.
Live preview
Fields
FieldType
tabsarray. Collection of objects containing the language identifier, tab label, and code string.required
Example payload
{
  "type": "tabbed_code",
  "tabs": [
    {
      "label": "Tab 1",
      "content": "Content one."
    },
    {
      "label": "Tab 2",
      "content": "Content two."
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:tabbed_code",
  "displayName": "Tabbed Code",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/tabbed_code",
  "capabilities": [
    "web",
    "google-apps-script-web",
    "mcp-apps"
  ],
  "description": "Renders multiple code snippets organized inside an interactive, multi-tab container component.",
  "representativeQueries": [
    "show a organize multiple programming language snippets inside an interactive tab container",
    "renders multiple code snippets organized inside an interactive, multi-tab container component.",
    "render a tabbed code"
  ]
}
← Full ARD catalog
Deploy your own Google Apps Script renderer

The renderer is an open-source Google Apps Script web app. 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 a2ui/apps-script-surface/gas-wired-renderer
clasp push && clasp deploy
Full deploy guide →