Skip to content

Radio

Basic usage

Disabled

Disable the Radio with the disabled attribute.

Radio button group

Combine dd-radio-group with dd-radio to display a radio group. Bind a variable with v-model of dd-radio-group

Button style

Radio with button styles.

With borders

Size

Radio API

Radio Attributes

NameDescriptionTypeDefaultVersion
checked(v-model)binding valueboolean
valuevaluestring | number | boolean
disableddisabledbooleanfalse
sizesizelarge | default | small

Radio Events

NameDescriptionType
changeonly if the modelValue has changed(value: string | number | boolean) => void

Radio Slots

NameDescription
defaultcustomize default content

RadioGroup API

RadioGroup Attributes

NameDescriptionTypeDefaultVersion
value(v-model)binding valuestring | number | boolean
disableddisabledbooleanfalse
sizesizelarge | default | small
buttonStylebuttonStyleoutline | solidoutline

RadioGroup Events

NameDescriptionType
changeonly if the modelValue has changed(value: string | number | boolean, oldValue: string | number | boolean) => void

RadioGroup Slots

NameDescription
defaultcustomize default content

Contributors

lazy

ChangeLog

12ea7 - fix: 修正插槽内容变更时,组件无变化 on 11/29/2023
715b9 - feat: radio on 11/29/2023

Released under the MIT License.