| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| data | RadioItem[] |
[] |
Y | Option data. |
| layout | 'v'\|'h'\|'inline' |
'v' |
N | Layout mode. |
| value | string |
'' |
N | Selected value. |
| textPosition | 'l'\|'r'\|'t'\|'b' |
'r' |
N | Position of option content area. |
| icon | 'default'\|null|Icon |
'default' |
N | Content of unchecked option icon area. |
| iconChecked | 'default'\|null|Icon |
'default' |
N | Content of checked option icon area. |
| Name | Type | Parameters | Description |
|---|---|---|---|
| onchange | (value: string) => void |
value - Selected Radio identifier | Triggered when RadioItem is clicked (Radio value changes). |
| Name | Type | Parameters | Description |
|---|---|---|---|
| radioChild | Snippet<[{ item: RadioItem }]> |
item - Option data | Used when customizing the option area. |
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| name | string |
'' |
Y | Identifier, corresponds to Radio Props value. |
| label | string |
'' |
N | Option content. |
| layout | 'v'\|'h'\|'inline' |
'v' |
N | Layout mode. |
| textPosition | 'l'\|'r'\|'t'\|'b' |
'r' |
N | Position of option content area. |
| icon | 'default'\|null|Icon |
'default' |
N | Content of unchecked option icon area. |
| iconChecked | 'default'\|null|Icon |
'default' |
N | Content of checked option icon area. |
| checked | boolean |
false |
N | Whether checked. |
| Name | Type | Parameters | Description |
|---|---|---|---|
| onclick | (name: string) => void |
name - Clicked item identifier | Triggered when clicked. |
| Name | Type | Parameters | Description |
|---|---|---|---|
| children | Snippet |
- | Option area content. |