npm / @radix-ui/react-toggle-group
@radix-ui/react-toggle-group
What changed in @radix-ui/react-toggle-group 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 security1 performance2 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@radix-ui/react-toggle-group 17 changes
Security 1
The package is republished through CI with provenance attestations, allowing developers to verify its publishing provenance.
Performance 1
Improved tree-shaking lets bundlers drop unused components; component parts use pure annotations and named render functions to avoid preventing dead-code elimination.
Behavior and default changes 2
Single-select toggle groups now use the radiogroup role.
Multi-select toggle groups now use the toolbar role.
Fixes and other changes 3
Fixed a type regression so callback props accept handlers whose parameter is narrower than the prop's.
Optional types now allow explicit undefined for compatibility with TypeScript's exactOptionalPropertyTypes flag.
Reverted breaking changes that caused compatibility issues with React Server Components.