Text
Layout and media / Text
Add a heading, explanation, or concise result to a surface.
When to use it
Add a heading, explanation, or concise result to a surface.
What the agent supplies
A run of text, plain or headed (h1-h5, caption, body).
The agent chooses the content and binds it to the component. CLIO then renders the view and its available controls.
What the agent receives
The exact output of load_skill, including resolved local definitions.
load_skill("a2ui-catalog-basic", file="catalog.json#/components/Text"){
"type": "object",
"allOf": [
{
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
},
{
"type": "object",
"properties": {
"weight": {
"type": "number",
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
}
}
},
{
"type": "object",
"properties": {
"component": {
"const": "Text"
},
"text": {
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
"description": "The text content to display. While simple Markdown formatting is supported (i.e. without HTML, images, or links), utilizing dedicated UI components is generally preferred for a richer and more structured presentation."
},
"variant": {
"type": "string",
"description": "A hint for the base text style.",
"enum": [
"h1",
"h2",
"h3",
"h4",
"h5",
"caption",
"body"
],
"default": "body"
}
},
"required": [
"component",
"text"
]
}
],
"unevaluatedProperties": false
}
Standard refs (not loadable here): https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon, https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString