Radio group
radio-groupA choice of exactly one option, where the group owns the value and the arrow keys travel in the direction the options are laid out. Horizontal and vertical are the same component with an orientation, and a disabled option reads as present but unavailable.
import { Radio, RadioGroup } from "@/components/forme/radio-group/radio-group";
export function RadioGroupDemo() {
return (
<div className="flex flex-col gap-6">
<RadioGroup defaultValue="yearly">
<Radio label="Pay yearly — $129" value="yearly" />
<Radio label="Pay once — $199" value="lifetime" />
</RadioGroup>
<RadioGroup defaultValue="cozy" className="flex-row gap-4">
<Radio label="Cozy" value="cozy" />
<Radio label="Compact" value="compact" />
<Radio label="Dense" value="dense" />
</RadioGroup>
<RadioGroup defaultValue="no">
<Radio label="Ship it" value="yes" />
<Radio label="Ask someone else" value="no" disabled />
</RadioGroup>
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
Radio
One option.
| Prop | Type | Default | Description |
|---|---|---|---|
label | React.ReactNode | — | The visible label, rendered beside the control and wired to it. |
Also takes every prop of Base UI Radio.Root.
The other parts
RadioGroupTakesComponentProps<typeof RadioGroupPrimitive>
Related


Checkbox
A single choice with a visible label wired to it for a screen reader. Carries a destructive variant for choices that cannot be undone, and the box itself fills with the accent when checked so the state is readable at a glance.
forms

Poll
A question to vote on that turns into its results in place: bars grow to each share, the percentages roll and always total 100, and your choice is marked. Single or multiple choice, on real radios and checkboxes.
forms

Select
A choice from a list too long for radio buttons. Grouped with labels, an inline check on the selected option, typeahead and arrow-key navigation from the Base UI select primitive, and a trigger that reads as a field rather than as a button so it sits beside inputs without looking wrong.
forms