@radix-ui/react-switch breaking changes
@radix-ui/react-switch 1.4.1 (October 12, 2026) is its newest release with breaking changes, 2 of them. The first: Signature changed SwitchProps.onCheckedChange. Every breaking API change we have recorded in @radix-ui/react-switch on npm: 36 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.4.2, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@radix-ui/react-switch 1.4.1 breaking changes
- Signature changed
SwitchProps.onCheckedChange
Was onCheckedChange?: ((checked: boolean) => void) | undefined; now onCheckedChange?: {bivarianceHack(checked: boolean): void;}['bivarianceHack'] | undefined. npmjs.com - Signature changed
unstable_SwitchProviderProps.onCheckedChange
Was onCheckedChange?: ((checked: boolean) => void) | undefined; now onCheckedChange?: {bivarianceHack(checked: boolean): void;}['bivarianceHack'] | undefined. npmjs.com
@radix-ui/react-switch 1.4.0 breaking changes
- Signature changed
SwitchProps.checked
Was checked?: boolean; now checked?: boolean | undefined. npmjs.com - Signature changed
SwitchProps.defaultChecked
Was defaultChecked?: boolean; now defaultChecked?: boolean | undefined. npmjs.com - Signature changed
SwitchProps.onCheckedChange
Was onCheckedChange?(checked: boolean): void; now onCheckedChange?: ((checked: boolean) => void) | undefined. npmjs.com - Signature changed
SwitchProps.required
Was required?: boolean; now required?: boolean | undefined. npmjs.com - Signature changed
unstable_SwitchProviderProps.checked
Was checked?: boolean; now checked?: boolean | undefined. npmjs.com - Signature changed
unstable_SwitchProviderProps.children
Was children?: React.ReactNode; now children?: React.ReactNode | undefined. npmjs.com - Signature changed
unstable_SwitchProviderProps.defaultChecked
Was defaultChecked?: boolean; now defaultChecked?: boolean | undefined. npmjs.com - Signature changed
unstable_SwitchProviderProps.disabled
Was disabled?: boolean; now disabled?: boolean | undefined. npmjs.com - Signature changed
unstable_SwitchProviderProps.form
Was form?: string; now form?: string | undefined. npmjs.com - Signature changed
unstable_SwitchProviderProps.name
Was name?: string; now name?: string | undefined. npmjs.com
And 4 more in this version. Sign up to see every change
@radix-ui/react-switch 1.3.8 breaking changes
- Signature changed
unstable_Provider
Was function SwitchProvider(props: ScopedProps<SwitchProviderProps>): react_jsx_runtime.JSX.Element; now function SwitchProvider(props: ScopedProps<SwitchProviderProps>): React.JSX.Element. npmjs.com - Signature changed
unstable_SwitchProvider
Was function SwitchProvider(props: ScopedProps<SwitchProviderProps>): react_jsx_runtime.JSX.Element; now function SwitchProvider(props: ScopedProps<SwitchProviderProps>): React.JSX.Element. npmjs.com
@radix-ui/react-switch 1.3.7 breaking changes
- Signature changed
unstable_Provider
Was function SwitchProvider(props: ScopedProps<SwitchProviderProps>): React.JSX.Element; now function SwitchProvider(props: ScopedProps<SwitchProviderProps>): react_jsx_runtime.JSX.Element. npmjs.com - Signature changed
unstable_SwitchProvider
Was function SwitchProvider(props: ScopedProps<SwitchProviderProps>): React.JSX.Element; now function SwitchProvider(props: ScopedProps<SwitchProviderProps>): react_jsx_runtime.JSX.Element. npmjs.com
@radix-ui/react-switch 1.3.5 breaking changes
- Signature changed
unstable_Provider
Was function SwitchProvider(props: ScopedProps<SwitchProviderProps>): react_jsx_runtime.JSX.Element; now function SwitchProvider(props: ScopedProps<SwitchProviderProps>): React.JSX.Element. npmjs.com - Signature changed
unstable_SwitchProvider
Was function SwitchProvider(props: ScopedProps<SwitchProviderProps>): react_jsx_runtime.JSX.Element; now function SwitchProvider(props: ScopedProps<SwitchProviderProps>): React.JSX.Element. npmjs.com
@radix-ui/react-switch 1.3.0 breaking changes
- Signature changed
Root
Was const Root: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>; now const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>. npmjs.com - Signature changed
SwitchProps
Was interface SwitchProps extends PrimitiveButtonProps; now interface SwitchProps extends Omit<PrimitiveButtonProps, 'checked' | 'defaultChecked'>. npmjs.com - Signature changed
Thumb
Was const Thumb: React.ForwardRefExoticComponent<SwitchThumbProps & React.RefAttributes<HTMLSpanElement>>; now const SwitchThumb: React.ForwardRefExoticComponent<SwitchThumbProps & React.RefAttributes<HTMLSpanElement>>. npmjs.com
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
@radix-ui/react-switch 0.1.0 breaking changes
- Removed
InputDOMProps
InputDOMProps was removed in @radix-ui/react-switch 0.1.0 npmjs.com - Removed
SWITCH_DEFAULT_TAG
SWITCH_DEFAULT_TAG was removed in @radix-ui/react-switch 0.1.0 npmjs.com
And 9 more in this version.
Related packages
- @radix-ui/react-toggle
- @radix-ui/react-select
- @radix-ui/react-toggle-group
- @radix-ui/react-toast
- @radix-ui/react-context-menu
- @radix-ui/react-tooltip
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.