Button
Controls / Button
Trigger a named action from a compact control.
When to use it
Trigger a named action from a compact control.
What the agent supplies
A clickable control wrapping one child, firing an action.
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/Button"){
"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."
}
}
},
{
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Checkable"
},
{
"type": "object",
"properties": {
"component": {
"const": "Button"
},
"child": {
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentId",
"description": "The ID of the child component. Use a 'Text' component for a labeled button. Only use an 'Icon' if the requirements explicitly ask for an icon-only button."
},
"variant": {
"type": "string",
"description": "A hint for the button style. If omitted, a default button style is used. 'primary' indicates this is the main call-to-action button. 'borderless' means the button has no visual border or background, making its child content appear like a clickable link.",
"enum": [
"default",
"primary",
"borderless"
],
"default": "default"
},
"action": {
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Action"
}
},
"required": [
"component",
"child",
"action"
]
}
],
"unevaluatedProperties": false
}
Standard refs (not loadable here): https://a2ui.org/specification/v0_9/common_types.json#/$defs/Action, https://a2ui.org/specification/v0_9/common_types.json#/$defs/Checkable, https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon, https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentId