# What changed in @radix-ui/react-toggle

> 5 changes in @radix-ui/react-toggle 1 from its official release notes, upgrade guides and advisories. Each one cited. Sources checked 2026-10-20. HTML: https://unstale.sh/npm/@radix-ui/react-toggle/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @radix-ui/react-toggle 1

### Performance

- Improved tree-shaking lets bundlers drop unused components, enabling better dead-code elimination. (1.1.15) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/toggle/CHANGELOG.md#1115)

### Tooling

- The package is re-released through CI so it includes a provenance attestation. (1.1.16) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/toggle/CHANGELOG.md#1116)

### Fixes and other changes

- Fixed a type regression so callback props declared as methods accept handlers whose parameter is narrower than the prop's. (1.2.1) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/toggle/CHANGELOG.md#121)
- Optional types now allow explicit undefined for compatibility with TypeScript's exactOptionalPropertyTypes flag. (1.2.0) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/toggle/CHANGELOG.md#120)
- Reverted breaking changes that caused compatibility issues with React Server Components. (1.1.18) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/toggle/CHANGELOG.md#1118)
