Skip to content

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).

PropTypeDefaultDescription
value!!string | undefinedundefinedControlled value (use with !!). Leave undefined for uncontrolled.
defaultValuestring''
orientationRadioGroupOrientation
RadioGroupOrientation = 'vertical' | 'horizontal'
'vertical'
disabledbooleanfalse
EventTypeDefaultDescription
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).

PropTypeDefaultDescription
valuestring''
labelResourceStr | undefinedundefined
disabledbooleanfalse
invalidbooleanfalse
descriptionResourceStr | undefinedundefinedMuted helper text under the label.
sizingChoiceSize
ChoiceSize = 'sm' | 'default' | 'lg'
'default'
cardbooleanfalseBordered choice card around the radio, label and description.

MIT Licensed