Radio
Description of the Radio's function.
Examples
Basic
Basic usage of radio.
Disabled
Disabled radio.
Radio Group
A group of radio components.
Vertical Radio Group
Vertical radio group.
Radio Group With Options
Render radios by configuring options.
Radio Button Group
Radio button group example.
Solid Button Group
Solid radio button group example.
Size
Different size radio button groups.
API
Radio Attributes
Property | Description | Type | Default |
---|---|---|---|
autoFocus | Set focus when component mounted. | Boolean | false |
checked | Specifies whether the checkbox is selected. | Boolean | false |
disabled | Disable checkbox. | Boolean | false |
value | Value is used to determine if this radio is selected in a group. | Any | - |
RadioGroup Attributes
Property | Description | Type | Default |
---|---|---|---|
disabled | Disable all radios. | Boolean | false |
name | The name property of all input[type="radio"] children. | String | - |
options | Specifies options. | String[] | [{label:"",value:"",disabled:false}] | [] |
value | Used for setting the currently selected value. Can be used for 2 way binding. | String | - |
size | Size for radio buttons. | large | middle | small | - |
buttonStyle | Style type of the radio buttons. | outline | solid | outline |
Radio Events
Name | Description |
---|---|
change | Triggers when the radio checked state changes. |
RadioGroup Events
Name | Description |
---|---|
change | Triggers when the radio group value changes. |
Radio Bind
Name | Description |
---|---|
focus | Let's you bind to the input focus method. |
blur | Let's you bind to the input blur method. |