CSS-only variant picker — each option is a selectable card with a label and optional description, rendered as hidden radio inputs with label:has(input:checked) styling. Used for product size, colour, or plan variant selection. Adapted from the RadioGroup/RadioItem pattern in OpenUI OUI benchmark samples.
| Field | Type | |
|---|---|---|
| name | string. Form field name used in radio input group. | required |
| label | string. Group label shown above the options. | optional |
| items | {'type': 'array', 'description': 'List of {value, title, description?} option objects.'} | required |
| default_value | string. Pre-selected option value. | optional |
{
"type": "variant_selector",
"name": "Variant Selector",
"items": [
{
"label": "Item 1"
},
{
"label": "Item 2"
}
]
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:variant_selector",
"displayName": "Variant Selector",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/variant_selector",
"capabilities": [
"web",
"meet-stage",
"apps-script-web"
],
"description": "CSS-only variant picker \u2014 each option is a selectable card with a label and optional description, rendered as hidden radio inputs with label:has(input:checked) styling. Used for product size, colour, or plan variant selection. Adapted from the RadioGroup/RadioItem pattern in OpenUI OUI benchmark samples.",
"representativeQueries": [
"show a CSS radio card group for variant or option picking",
"css-only variant picker \u2014 each option is a selectable card with a label and optional description, re",
"render a variant selector"
]
}
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 →