RadioGroup
A group of radio buttons for selecting a single option from multiple choices.
Usage
RadioGroup.Root Props
| Prop | Type | Default |
|---|---|---|
name | string | — |
required | boolean | — |
disabled | boolean | — |
dir | enum | — |
orientation | enum | — |
loop | boolean | — |
defaultValue | string | — |
value | string | — |
onValueChange | function | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
RadioGroup.Card Props
| Prop | Type | Default |
|---|
RadioGroup.Item Props
| Prop | Type | Default |
|---|---|---|
value | string | — |
type | enum | — |
checked | boolean | — |
required | boolean | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
RadioGroup.ItemLabel Props
| Prop | Type | Default |
|---|---|---|
className | string | — |
children | ReactNode | — |
asChild | boolean | — |