For AI agents: the complete documentation index is available at /apps-plugin/docs/llms.txt, the full documentation bundle is available at /apps-plugin/docs/llms-full.txt, and this page is available as Markdown at /apps-plugin/docs/components/form/radio-group.md.

radio-group

单选按钮组,管理一组互斥的 Radio 选项,提供统一的值控制。

扫码预览

扫码预览 radio-group

Props

属性名类型默认值必填说明
childrenReactNode-否子元素
classNamestring-否组件类名
defaultValuestring-否默认选中的值(非受控模式)
disabledbooleanfalse否是否禁用整组
onValueChange(value: string) => void-否选中值变化时的回调
styleCSSProperties-否组件样式
valuestring-否当前选中的值(受控模式)