npm / @radix-ui/react-toggle
@radix-ui/react-toggle
What changed in @radix-ui/react-toggle 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 performance1 tooling3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@radix-ui/react-toggle 15 changes
Performance 1
Improved tree-shaking lets bundlers drop unused components, enabling better dead-code elimination.
Tooling 1
The package is re-released through CI so it includes a provenance attestation.
Fixes and other changes 3
Fixed a type regression so callback props declared as methods 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.