A radio input allows people to select only one option from a number of choices. Radio is generally displayed in a radio group.
| Property | Description | Type | Default |
|---|---|---|---|
autoFocus | Whether get focus when component mounted | boolean | false |
checked | Specifies whether the radio is selected | boolean | false |
defaultChecked | Specifies the initial state: whether or not the radio is selected | boolean | false |
disabled | Disable radio | boolean | false |
value | According to value for comparison, to determine whether the selected | any | - |
| Property | Description | Type | Default |
|---|---|---|---|
defaultValue | Default selected value | any | - |
disabled | Disable all radio buttons | boolean | - |
name | The name property of all input[type="radio"] children | string | - |
options | Set children optional | string[] | Array<{ label: string value: string disabled?: boolean }> | - |
size | The size of radio button style | large | middle | small | - |
value | Used for setting the currently selected value | any | - |
onChange | The callback function that is triggered when the state changes | function(e:Event) | - |
optionType | Set Radio optionType | default | button | default |
buttonStyle | The style type of radio button | outline | solid | outline |
| Property | Description | Type | Default |
|---|---|---|---|
blur() | Remove focus | - | |
focus() | Get focus | - |