Component changelog
RadioGroup changelog
Component-specific release notes collected from the full changelog. This page filters the published entries that mention RadioGroup.
Release
v1.2.1
Patch Changes
-
8859953:
Combobox,Checkbox,CheckboxGroup,RadioGroup,SwitchandFieldno longer restore their default value when the owning form'sresetevent is cancelled withpreventDefault(). They used to reset anyway, so a page that cancels resets lost the user's selection and submitted the default. The restore now runs after the event has finished dispatching, like a native control, so it also follows the browser's own reset of the form (#2344). -
cd01923:
childrenis optional in the types of parts that work without it:Checkbox.Root,Switch.Root,Progress.Root,Slider.Root,RadioGroup.RootandRadioGroup.Item, and the triggers ofDialog,AlertDialog,Tooltip,DropdownMenu,ContextMenuandMenubar. A wrapper typed fromReact.ComponentProps<typeof Checkbox.Root>no longer forces every call site to pass children (#2334). -
b8cddb8:
RadioGroupandRadioCardsrender their items directly inside theradiogroupelement. They used to sit in an extra<div role="group">, sodisplay: gridorflexwithgapon the root didn't lay them out, and assistive tech met agroupnested inside theradiogroup. The Clarity and Baremetal themes now lay out the root itself. If your own CSS targeted the inner wrapper (.rad-ui-radio-group-root > [role="group"]), move those rules to the root (#2336).
Release
v1.2.0
Minor Changes
-
07e6783: Add
readOnlyto Checkbox, Switch and RadioGroup. A read-only control shows its state, stays focusable and in the form, but clicks and Space don't change it; it carriesaria-readonlyanddata-readonly. -
07e6783: Add DirectionProvider and
useDirection. Wrap an RTL app once with<DirectionProvider dir="rtl">and every Rad UI component inside uses right-to-left keyboard navigation and positioning: Tabs, TabNav, ToggleGroup, Toolbar, RadioGroup, CheckboxGroup, Accordion, Menubar, menus, NavigationMenu, Splitter, Slider, Select and Combobox. A component's owndirprop still wins. Setdiron<html>as well so text and CSS follow. -
befc825: Checkbox takes
indeterminate,uncheckedValue,formandinputRef; Switch takesuncheckedValue,formandinputRef; RadioGroup takesformandinputRef. Form reset now also works with aformoutside the tree. Slider takesthumbCollisionBehavior(none,push,swap),format/locale,largeStepandform; its thumbs takegetAriaLabel,getAriaValueTextandinputRef. NumberField takesallowOutOfRange,snapOnStep,formandinputRef. -
ed15256: Add
forceMounttoCheckbox.IndicatorandRadioGroup.Indicator(and the CheckboxGroup primitive content): the indicator stays rendered while unchecked, withdata-state="unchecked", so it can animate out or reserve space. The radio indicator now also carriesdata-state. -
07e6783: DropdownMenu, ContextMenu and Menubar gain
CheckboxItem,RadioGroup,RadioItem,ItemIndicator,GroupandGroupLabel. Checkbox items toggle (checked,defaultChecked,onCheckedChange), radio items pick one value in their group (value,defaultValue,onValueChange), and both keep the menu open unlesscloseOnClickis set. They exposemenuitemcheckboxandmenuitemradiowitharia-checked,data-stateanddata-checked, and a GroupLabel names its Group for screen readers.
Patch Changes
- 07e6783
CheckboxGroupandRadioGroupalways render their group wrapper. With a single item wrapped in itsLabel, the group'sroleandidused to merge onto that<label>, so the checkbox or radio lost its accessible name.
Release
v1.1.0
Patch Changes
-
9ff88bf: fix(a11y): Command separators and RadioGroup arrow keys
- Command:
Command.Separatoris now hidden from assistive technology (aria-hidden, norole="separator"). A separator isn't an allowed child of thelistboxit renders inside, so axe reported a criticalaria-required-childrenviolation. - RadioGroup / RadioCards: all four arrow keys move between options, whatever the
orientation, as the WAI-ARIA radio pattern specifies. Radix and Base UI do the same.orientationstill setsaria-orientation.
- Command:
Release
v1.0.0
Patch Changes
- 903a35dExpose stable RadioGroup anatomy markers through
data-slotattributes on root, label, item, and indicator parts.
Release
v0.1.0
Minor Changes
- b471ddbTests, API improvements across components, Steps + Minimap, roving focus for CheckboxGroup, RadioGroup and Select updates,
forwardRefon many primitives, a11y and build fixes.