Radio group displays a set of options and allows user to select only one.
RadioGroup automatically positions radios horizontally, if there are no more than 3 radios and none of them have descriptions.
Set isDisabled on the <RadioGroup /> to disable all options.
Or set isDisabled on a <Radio /> to disable that specific option.
| Name | Default | Description |
|---|---|---|
isDisabled | false | booleanDetermines if all radios are disabled. |
children | — | ReactNodeRadio inputs. |
orientation | "horizontal" | "horizontal" | "vertical"Orientation. |
value | — | TSelected radio value. |
onChange | — | (value: T) => voidCallback for when user selects a different radio option. |
| Name | Default | Description |
|---|---|---|
isDisabled | — | booleanDetermines if radio is disabled. |
label | — | stringLabel to show near the radio. |
badge | — | ReactNodeBadge to display near the label. |
description | — | ReactNodeDescription to show below the label. |
tooltip | — | Omit<TooltipProps, "children">Tooltip to display when hovering over the radio. These props are passed to the tooltip component. |
value | — | TRadio value. |