Radio

Single selection among multiple options.

Basic usage

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

Creating a radio component is easy, you just need to bind a variable to Radio's v-model. It equals to the value of label of the chosen radio. The type of label is String, Number or Boolean.

Disabled

disabled attribute is used to disable the radio.

Radio Group

Suitable for choosing from some mutually exclusive options.

Icon style

Radio with icon style

Button style

Radio with button style

Segment style

Radio with segment style

Radio Attributes

AttributeDescriptionTypeAccepted ValuesDefault
model-value / v-modelbinding valuestring / number / boolean——
valuethe value of Radiostring / number / boolean——
labelthe display label of Radiostring——
disabledwhether Radio is disabledboolean—false
sizesize of the Radiostringlarge / default /small—
namenative 'name' attributestring——

Radio Events

Event NameDescriptionParameters
changetriggers when the bound value changesthe label value of the chosen radio

Radio Slots

NameDescription
—customize default label
subcustomize default substitution text
iconcustomize default icon

Radio-Group Attributes

AttributeDescriptionTypeAccepted ValuesDefault
model-value / v-modelbinding valuestring / number / boolean——
sizethe size of radiostringlarge / default / smalldefault
largethe large size of radioboolean—false
smallthe small size of radioboolean—false
segmentsegment styleboolean—false
disabledwhether the nesting radios are disabledboolean—false
validate-eventwhether to trigger form validationboolean-true

Radio-Group Events

Event NameDescriptionParameters
changetriggers when the bound value changesthe label value of the chosen radio

Radio-Group Slots

NameDescriptionSubtags
—customize default contentRadio / Radio-button

Radio-Button Attributes

AttributeDescriptionTypeAccepted ValuesDefault
valuethe value of radiostring / number——
labelthe label of Radiostring——
disabledwhether radio is disabledboolean—false
namenative 'name' attributestring——
segmentsegment styleboolean—false

Radio-Button Slots

NameDescription
—customize default content
Last Updated:
Contributors: Tam Mai