Example 1
Profile card component tree
A compact static surface using Column, Card, Image, and Text components.
What it demonstrates
- Reachable root
- Nested single-child references
- Basic Catalog variants
[
{
"version": "v0.9.1",
"createSurface": {
"surfaceId": "profile-card",
"catalogId": "https://a2ui.org/specification/v0_9_1/catalogs/basic/catalog.json"
}
},
{
"version": "v0.9.1",
"updateComponents": {
"surfaceId": "profile-card",
"components": [
{
"id": "root",
"component": "Column",
"children": [
"profile"
],
"align": "stretch"
},
{
"id": "profile",
"component": "Card",
"child": "profile-content"
},
{
"id": "profile-content",
"component": "Column",
"children": [
"avatar",
"name",
"role"
]
},
{
"id": "avatar",
"component": "Image",
"url": "https://example.com/avatar.png",
"description": "Portrait of Maya Chen",
"fit": "cover",
"variant": "avatar"
},
{
"id": "name",
"component": "Text",
"text": "Maya Chen",
"variant": "h2"
},
{
"id": "role",
"component": "Text",
"text": "Frontend engineer",
"variant": "body"
}
]
}
}
]