Provides single user input from a selection of options.
A group of radio components.
Radio of different sizes.
Description
can be combined with other components.
Disable all radios.
Horizontal arrangement.
Radio.Props
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
checked | selected or not (in single) | boolean | - | false |
value | unique ident value (in group) | string | - | - |
id | native attr | string | - | - |
disabled | disable current radio | boolean | - | false |
size | radio size | NormalSizes | NormalSizes | medium |
onChange | change event | (e: RadioEvent) => void | - | - |
... | native props | InputHTMLAttributes | 'id', 'className', ... | - |
Radio.Group.Props
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
initialValue | initial value | string | - | - |
value | selected child radio | string | - | - |
useRow | horizontal layout | boolean | - | false |
disabled | disable all radios | boolean | - | false |
size | size of all radios in the group | NormalSizes | NormalSizes | medium |
onChange | change event | (value: string) => void | - | - |
... | native props | HTMLAttributes | 'id', 'className', ... | - |
Radio.Description.Props
[alias: Radio.Desc
]Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
... | native props | HTMLAttributes | 'id', 'className', ... | - |
NormalSizes
type NormalSizes = 'mini' | 'small' | 'medium' | 'large'