Radio
# FxRadio
Single selection among a set of options.
# Basic Usage
Since options are visible by default, they should not be too numerous. For cases with many options, consider using the Select component instead.
Copy
# Disabled State
The disabled state of Radio.
Copy
# Radio Group
For scenarios requiring selection among mutually exclusive options.
Copy
# Button Style
Radio group with button-style appearance.
Copy
# With Border
Copy
# Radio Attributes
| Attribute | Description | Type | Options | Default | PC/Mobile Support |
|---|---|---|---|---|---|
| value / v-model | binding value | string / number / boolean | — | — | PC/Mobile |
| label | Radio's value | string / number / boolean | — | — | PC/Mobile |
| disabled | whether disabled | boolean | — | false | PC/Mobile |
| border | whether to show border | boolean | — | false | PC only |
| size | Radio size, works when border is true | string | medium / small / mini | — | PC only |
| name | native name attribute | string | — | — | PC only |
# Radio Events
| Event Name | Description | Callback Parameters | PC/Mobile Support |
|---|---|---|---|
| change | triggers when binding value changes | selected Radio label value | PC/Mobile |
# Radio-group Attributes
| Attribute | Description | Type | Options | Default | PC/Mobile Support |
|---|---|---|---|---|---|
| value / v-model | binding value | string / number / boolean | — | — | PC/Mobile |
| size | size of radio buttons, works when type is button or border is true | string | medium / small / mini | — | PC only |
| disabled | whether disabled | boolean | — | false | PC/Mobile |
| text-color | text color when button is active | string | — | #ffffff | PC only |
| fill | fill and border color when button is active | string | — | #409EFF | PC only |
# Radio-group Events
| Event Name | Description | Callback Parameters | PC/Mobile Support |
|---|---|---|---|
| change | triggers when binding value changes | selected Radio label value | PC/Mobile |
# Radio-button Attributes
| Attribute | Description | Type | Options | Default | PC/Mobile Support |
|---|---|---|---|---|---|
| label | Radio's value | string / number | — | — | PC/Mobile |
| disabled | whether disabled | boolean | — | false | PC/Mobile |
| name | native name attribute | string | — | — | PC only |