Tree View

IBM Carbon Design System hierarchical tree for displaying recursive data structures — organisational charts, category hierarchies, nested permission models, BOM trees. More semantically general than file_tree which is file-system specific. Expanded/collapsed state set per node. Adapted from IBM Carbon TreeView component.

Surfaces
webmeet-stageemailpdfapps-script-web
Degraded on
SurfaceNote
googlechatrenders as an indented plain text tree; no expand/collapse indicators
Fields
FieldType
titlestring. Label above the tree panel.optional
nodesarray. Recursive list of {label, icon?, expanded?, meta?, children?[]} node objects.required
Example payload
{
  "type": "tree_view",
  "nodes": [
    {
      "label": "src/",
      "children": [
        {
          "label": "index.ts"
        }
      ]
    },
    {
      "label": "package.json"
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:tree_view",
  "displayName": "Tree View",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/tree_view",
  "capabilities": [
    "web",
    "meet-stage",
    "email",
    "pdf",
    "apps-script-web"
  ],
  "description": "IBM Carbon Design System hierarchical tree for displaying recursive data structures \u2014 organisational charts, category hierarchies, nested permission models, BOM trees. More semantically general than file_tree which is file-system specific. Expanded/collapsed state set per node. Adapted from IBM Carbon TreeView component.",
  "representativeQueries": [
    "show a recursive hierarchical tree with expand/collapse per node",
    "ibm carbon design system hierarchical tree for displaying recursive data structures \u2014 organisational",
    "render a tree view"
  ]
}
← 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 →