Radio Group
A set of checkable buttons, known as radio buttons, where no more than one can be checked at a time.
Usage
Approximate web preview — the HarmonyOS rendering is the reference.
Horizontal & disabled
orientation: 'vertical' | 'horizontal'
Approximate web preview — the HarmonyOS rendering is the reference.
Choice cards & sizes
card + description make a plan picker.
Approximate web preview — the HarmonyOS rendering is the reference.
API
Extracted from the @Param / @Event / @BuilderParam declarations in the library sources.
SRadioGroup
shadcn-vue RadioGroup (grid gap-3).
| Prop | Type | Default | Description |
|---|---|---|---|
value!! | string | undefined | undefined | Controlled value (use with !!). Leave undefined for uncontrolled. |
defaultValue | string | '' | |
orientation | RadioGroupOrientationRadioGroupOrientation = 'vertical' | 'horizontal' | 'vertical' | |
disabled | boolean | false |
| Event | Type | Default | Description |
|---|---|---|---|
onValueChange | (v: string) => void | () => { } |
Slots: children (trailing closure)
SRadioGroupItem
shadcn-vue RadioGroupItem: size-4 rounded-full border border-input shadow-xs dark:bg-input/30, the selected item shows a size-2 primary dot. The optional label is part of the tap target (flex items-center gap-3).
Variants: sizing sm | default | lg, description (muted text under the label) and card (a bordered, pressable choice card, highlighted while selected — e.g. plan pickers).
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | |
label | ResourceStr | undefined | undefined | |
disabled | boolean | false | |
invalid | boolean | false | |
description | ResourceStr | undefined | undefined | Muted helper text under the label. |
sizing | ChoiceSizeChoiceSize = 'sm' | 'default' | 'lg' | 'default' | |
card | boolean | false | Bordered choice card around the radio, label and description. |