Packages

@floating-ui/react

0.27.20 · 11 Jul 2026MIT34.1M / weekRepositoryHomepagenpmAtom feed

Your version

0.27.0

6 Dec 2024Where it was published

0.27.20 is the newest release of 0.27.x.

In short

1 breaking1 deprecated1 new1 faster4 fixed

  • Breaking

    Drop React 16 support. 17 is the minimum supported version.

  • Deprecated

    Deprecate inner and useInnerOffset. This technique of aligning an inner element to the reference has poor performance with longer lists, doesn't fit with the middleware paradigm, doesn't work on touch, and has a better custom alternative using native onScroll that is encouraged instead.

Release note

Minor Changes

  • Deprecated

    Deprecate inner and useInnerOffset. This technique of aligning an inner element to the reference has poor performance with longer lists, doesn't fit with the middleware paradigm, doesn't work on touch, and has a better custom alternative using native onScroll that is encouraged instead.

  • Breaking

    Drop React 16 support. 17 is the minimum supported version.

  • useId: Add | undefined return type for React 17

Patch Changes

  • FloatingFocusManager: Add outsideElementsInert prop. This enables pointer modality without a backdrop.

  • useListNavigation: Simplify focusing to remove unneeded asynchronicity

  • useDismiss: Allow native clicks to work with referencePress

  • useDismiss: Read target overflow style for scrollbar press check. Fixes an issue where outside presses would be incorrectly prevented if the target element that was pressed appeared scrollable but was actually not.

  • FloatingFocusManager: Check for 'safe-polygon' reason on return focus

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.