Radio
Basic radio
Disabled
Pass the disabled
attribute to the radio element to control whether it is disabled
Radio group
Multiple radio buttons can be grouped together to control selection using the built-in radio button group element radio-group
Attributes
radio
Attribute | Description | Type | Accepted values | Default |
text | radio button description text | string | | |
fontSize | radio button text size | number | | |
checked | Is the radio button checked? | boolean | | false |
disabled | Whether the radio button is disabled | boolean | | false |
value | radio button value | any | | |
Attribute | Description | Type | Accepted values | Default |
value | radio-group value | Array | | [] |
Events
radio
Event Name | Description | Parameters |
change | Event triggered when an option is selected | (value) |
radio-group
Event Name | Description | Parameters |
change | Event triggered when the value of the radio-group changes | (value) |