Skip to content

RadioGroup

Gen UI 2.0 standard

A group of radio buttons. The user chooses one option. Bind value with { "@path": "/x" } to read it. Give it a label.

One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use RadioGroup. Standard catalog docs

Props

Read from standardUI.manifestComponents in the installed @copilotkit/react-core. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.

PropTypeRequiredDescription
labelstringNoThe visible label of the field. Always set it
options(string | { value, label?, description? })[]No-
valuestringNoBind it with { "@path": "/x" } to read what the user entered
checks{ condition?, message? }[]NoValidation rules. The control shows the first failed one
namestringNo-
direction"row" | "col"NoDefault "row"
variant"list" | "pills" | "cards"No-
disabledbooleanNo-
requiredbooleanNo-