@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
On this page
Latest version 0.27.20, released July 11, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@floating-ui/react 0.27.0 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 - 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 - Signature changed
FloatingContext.floatingId
Was floatingId: string; now floatingId: string | undefined. npmjs.com - Signature changed
FloatingNodeProps.id
Was id: string; now id: string | undefined. npmjs.com - Signature changed
FloatingNodeType.id
Was id: string; now id: string | undefined. npmjs.com - Signature changed
FloatingRootContext.floatingId
Was floatingId: string; now floatingId: string | undefined. npmjs.com - Signature changed
useFloatingNodeId
Was function useFloatingNodeId(customParentId?: string): string; now function useFloatingNodeId(customParentId?: string): string | undefined. npmjs.com - Signature changed
useId
Was const useId: () => string; now const useId: () => string | undefined. npmjs.com
@floating-ui/react 0.26.0 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 - 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 - 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
@floating-ui/react 0.25.0 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 - 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 - 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 - 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
@floating-ui/react 0.24.0 breaking changes
- Removed
UseFloatingData.x
UseFloatingData.x was removed in @floating-ui/react 0.24.0 npmjs.com - Removed
UseFloatingData.y
UseFloatingData.y was removed in @floating-ui/react 0.24.0 npmjs.com - Removed
UseFloatingProps
UseFloatingProps was removed in @floating-ui/react 0.24.0 npmjs.com - Removed
UseFloatingReturn.context
UseFloatingReturn.context was removed in @floating-ui/react 0.24.0 npmjs.com - Removed
UseFloatingReturn.elements
UseFloatingReturn.elements was removed in @floating-ui/react 0.24.0 npmjs.com - Removed
UseFloatingReturn.floating
Use refs.setFloating instead. npmjs.com - Removed
UseFloatingReturn.isPositioned
UseFloatingReturn.isPositioned was removed in @floating-ui/react 0.24.0 npmjs.com - Removed
UseFloatingReturn.positionReference
Use refs.setPositionReference instead. npmjs.com - Removed
UseFloatingReturn.reference
Use refs.setReference instead. npmjs.com - Removed
UseFloatingReturn.refs
UseFloatingReturn.refs was removed in @floating-ui/react 0.24.0 npmjs.com
And 25 more in this version. Sign up to see every change
@floating-ui/react 0.23.0 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 - 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
@floating-ui/react 0.22.0 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 - Signature changed
useFloatingPortalNode
The enabled prop of useFloatingPortalNode was removed. Code that passes it must stop passing it. npmjs.com
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
@floating-ui/react 0.21.0 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 - 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
And 13 more in this version.
Related packages
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.