Radio

Single selection among multiple options.

Basic usage

Radio should not have too many options. Otherwise, use the Select component instead.

Disabled

disabled attribute is used to disable the radio.

Radio button group

Suitable for choosing from some mutually exclusive options.

Button style

Radio with button styles.

With borders

Radio API

Radio Attributes

NameDescriptionTypeDefault
model-value / v-modelbinding valuestring / number / boolean
labelthe value of Radiostring / number / boolean
disabledwhether Radio is disabledbooleanfalse
borderwhether to add a border around Radiobooleanfalse
sizesize of the Radioenum
namenative name attributestring

Radio Events

NameDescriptionType
changetriggers when the bound value changesFunction

Radio Slots

NameDescription
defaultcustomize default content

RadioGroup API

RadioGroup Attributes

NameDescriptionTypeDefault
model-value / v-modelbinding valuestring / number / boolean
sizethe size of radio buttons or bordered radiosstringdefault
disabledwhether the nesting radios are disabledbooleanfalse
text-colorfont color when button is activestring#ffffff
fillborder and background color when button is activestring#409EFF
validate-eventwhether to trigger form validationbooleantrue
label a11ysame as aria-label in RadioGroupstring
namenative name attributestring
idnative id attributestring

RadioGroup Events

NameDescriptionType
changetriggers when the bound value changesFunction

RadioGroup Slots

NameDescriptionSubtags
defaultcustomize default contentRadio / RadioButton

RadioButton API

RadioButton Attributes

NameDescriptionTypeDefault
labelthe value of Radiostring / number / boolean
disabledwhether Radio is disabledbooleanfalse
namenative 'name' attributestring

RadioButton Slots

NameDescription
defaultcustomize default content