A set of checkable buttons where only one can be checked at a time. Built on Base UI Radio primitives.
import {
RadioGroupRoot,
RadioItem,
} from "@/components/ui/static/radio"<RadioGroupRoot
value={value}
onValueChange={(value) => setValue(value as string)}
>
<RadioItem value="default" label="Default" />
<RadioItem value="comfortable" label="Comfortable" />
<RadioItem value="compact" label="Compact" />
</RadioGroupRoot>Free
Basic features, limited usage
Pro
All features, unlimited usage
Enterprise
Custom solutions, dedicated support
valuestringThe controlled value of the selected item.
defaultValuestringThe default value when uncontrolled.
onValueChange(value: string) => voidCallback when the selected value changes.
disabledbooleanfalseWhether the radio group is disabled.
requiredbooleanfalseWhether a selection is required.