Skip to content

Radio

Radio with spring-scale inner dot animation. Use ARadioGroup for mutually exclusive selection.

Basic Usage

Selected: opt-2

vue
<ARadioGroup v-model="value">
  <ARadio value="opt-1" label="Option 1" />
  <ARadio value="opt-2" label="Option 2" />
</ARadioGroup>

Disabled

API

ARadio Props

NameTypeDefaultDescription
valuestring | number | booleanRequiredThe option's value
modelValuestring | number | booleanBound value (not needed inside Group)
labelstringLabel text
namestringNative name (can omit inside Group)
disabledbooleanfalseDisabled

ARadioGroup Props

NameTypeDefaultDescription
modelValuestring | number | booleanCurrently selected value
namestringGroup name, auto-passed to children
disabledbooleanfalseDisable entire group

Emits (ARadioGroup)

NameParametersDescription
update:modelValuevalueValue changed
changevalueSelection changed

MIT License