Renders a group of mutually exclusive buttons for selection, styled
| Field | Type | |
|---|---|---|
| options | list of objects with label, value | required |
| selected_value | string | required |
| name | string | required |
{
"type": "segmented_control",
"options": [
{
"label": "Option A",
"value": "a"
},
{
"label": "Option B",
"value": "b"
},
{
"label": "Option C",
"value": "c"
}
],
"selected_value": "Selected value",
"name": "Segmented Control"
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:segmented_control",
"displayName": "Segmented Control",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/segmented_control",
"capabilities": [
"web",
"meet-stage",
"apps-script-web"
],
"description": "Renders a group of mutually exclusive buttons for selection, styled",
"representativeQueries": [
"show a mutually exclusive option selector strip as a single control",
"renders a group of mutually exclusive buttons for selection, styled",
"render a segmented control"
]
}
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 →