---
title: "@floating-ui/react 0.27.0 Breaking Changes on npm"
description: "What each @floating-ui/react release removed, renamed or changed: 69 breaking changes in 7 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@floating-ui/react
last_updated: 2026-12-04
---

# @floating-ui/react breaking changes

@floating-ui/react 0.27.0 (December 6, 2024) is its newest release with breaking changes, 8 of them. The first: @floating-ui/react 0.27.0 drops support for React 16 and requires React 17 or later. Every breaking API change we have recorded in @floating-ui/react on npm: 69 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

Latest version `0.27.20`, released July 11, 2026. [Source repository](https://github.com/floating-ui/floating-ui)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.21.0](#v-0-21-0) to [0.27.0](#v-0-27-0): 54 breaking changes in 6 versions.

## @floating-ui/react 0.27.0 breaking changes

@floating-ui/react 0.27.0, released December 6, 2024: 8 breaking changes.

- **Removed**  

React 16 is no longer supported; React 17 is the minimum version, so apps on React 16 must upgrade React first. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.27.0)
- **Signature changed** `FloatingContext`  

Was type FloatingContext\<RT extends ReferenceType = ReferenceType> = Omit\<UseFloatingReturn_2\<RT>, 'refs' | 'elements'> & {open: boolean; onOpenChange(open: boolean, event?: Event, reason?: OpenChangeReason): void; events: FloatingEvents... [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.27.0)
- **Signature changed** `FloatingContext.floatingId`  

Was floatingId: string; now floatingId: string | undefined. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.27.0)
- **Signature changed** `FloatingNodeProps.id`  

Was id: string; now id: string | undefined. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.27.0)
- **Signature changed** `FloatingNodeType.id`  

Was id: string; now id: string | undefined. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.27.0)
- **Signature changed** `FloatingRootContext.floatingId`  

Was floatingId: string; now floatingId: string | undefined. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.27.0)
- **Signature changed** `useFloatingNodeId`  

Was function useFloatingNodeId(customParentId?: string): string; now function useFloatingNodeId(customParentId?: string): string | undefined. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.27.0)
- **Signature changed** `useId`  

Was const useId: () => string; now const useId: () => string | undefined. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.27.0)

## @floating-ui/react 0.26.0 breaking changes

@floating-ui/react 0.26.0, released October 2, 2023: 3 breaking changes.

- **Removed** `@floating-ui.react.utils`  

React utils were moved to @floating-ui/react/utils. Imports from the previous location may need updating. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.26.0)
- **Removed** `UseFocusProps.keyboardOnly`  

The keyboardOnly option of useFocus was replaced by visibleOnly, which matches the :focus-visible CSS selector. Update code that passes keyboardOnly to use visibleOnly. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.26.0)
- **Behavior changed** `useFocus`  

useFocus now closes on blur only if focus stays within the document. Code relying on closing when focus leaves the document may behave differently. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.26.0)

## @floating-ui/react 0.25.0 breaking changes

@floating-ui/react 0.25.0, released July 28, 2023: 4 breaking changes.

- **Renamed**  

Utilities moved out of this package into @floating-ui/utils and are now imported from @floating-ui/utils/react. Update imports that used the old utils location. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.25.0)
- **Behavior changed** `elements.reference`  

Passing a virtual element as elements.reference now raises a type and runtime error. Pass a real DOM element as the reference instead. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.25.0)
- **Signature changed** `FloatingPortal`  

Was function FloatingPortal({children, id, root, preserveTabOrder}: FloatingPortalProps): import("react/jsx-runtime").JSX.Element; now function FloatingPortal({children, id, root, preserveTabOrder}: FloatingPortalProps): JSX.Element. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.25.0)
- **Signature changed** `UseFloatingOptions`  

Was interface UseFloatingOptions\<RT extends ReferenceType = ReferenceType> extends UsePositionOptions\<RT>; now interface UseFloatingOptions\<RT extends ReferenceType = ReferenceType> extends Omit\<UsePositionOptions\<RT>, 'elements'>. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.25.0)

## @floating-ui/react 0.24.0 breaking changes

@floating-ui/react 0.24.0, released April 30, 2023: 35 breaking changes.

- **Removed** `UseFloatingData.x`  

UseFloatingData.x was removed in @floating-ui/react 0.24.0 [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingData.y`  

UseFloatingData.y was removed in @floating-ui/react 0.24.0 [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingProps`  

UseFloatingProps was removed in @floating-ui/react 0.24.0 [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingReturn.context`  

UseFloatingReturn.context was removed in @floating-ui/react 0.24.0 [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingReturn.elements`  

UseFloatingReturn.elements was removed in @floating-ui/react 0.24.0 [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingReturn.floating`  

Use refs.setFloating instead. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingReturn.isPositioned`  

UseFloatingReturn.isPositioned was removed in @floating-ui/react 0.24.0 [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingReturn.positionReference`  

Use refs.setPositionReference instead. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingReturn.reference`  

Use refs.setReference instead. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)
- **Removed** `UseFloatingReturn.refs`  

UseFloatingReturn.refs was removed in @floating-ui/react 0.24.0 [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.24.0)

And 25 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @floating-ui/react 0.23.0 breaking changes

@floating-ui/react 0.23.0, released April 10, 2023: 2 breaking changes.

- **Removed** `safePolygon.restMs`  

The restMs option of safePolygon was replaced by a requireIntent boolean option, which is true by default. Code passing restMs must switch to requireIntent. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.23.0)
- **Signature changed** `safePolygon`  

Was function safePolygon\<RT extends ReferenceType = ReferenceType>({restMs, buffer, blockPointerEvents}?: Partial<{restMs: number; buffer: number; blockPointerEvents: boolean;}>): HandleCloseFn\<RT>; now function safePolygon\<RT extends... [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.23.0)

## @floating-ui/react 0.22.0 breaking changes

@floating-ui/react 0.22.0, released March 19, 2023: 2 breaking changes.

- **Behavior changed** `FloatingPortal`  

When a custom root or id is specified, the floating element is now always placed inside a new subroot element with a unique id. Code that relies on the previous DOM structure may need updating. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.22.0)
- **Signature changed** `useFloatingPortalNode`  

The enabled prop of useFloatingPortalNode was removed. Code that passes it must stop passing it. [npmjs.com](https://www.npmjs.com/package/@floating-ui/react/v/0.22.0)

## Older versions

1 older version, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### @floating-ui/react 0.21.0 breaking changes

@floating-ui/react 0.21.0, released March 12, 2023: 15 breaking changes.

- **Behavior changed** `FloatingArrow`  

strokeWidth is now doubled internally so it matches borderWidth, so arrows with a given strokeWidth render differently. strokeWidth larger than the floating element's borderWidth is not supported. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.21.0)
- **Behavior changed** `useTypeahead`  

useTypeahead now works without a role set, and it stops event propagation and prevents default when typeahead is in use. [github.com](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.21.0)

And 13 more in this version.

## Related packages

- [@floating-ui/utils](https://since.dev/packages/npm/@floating-ui/utils.md)
- [@floating-ui/core](https://since.dev/packages/npm/@floating-ui/core.md)
- [@floating-ui/dom](https://since.dev/packages/npm/@floating-ui/dom.md)
- [@floating-ui/vue](https://since.dev/packages/npm/@floating-ui/vue.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
