@floating-ui/react-dom
2.1.9 · 11 Jul 2026MIT112.9M / weekRepositoryHomepagenpmAtom feed
52 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 2.x · latest line
2.1.9
11 Jul 2026Support explicit
undefinedfor optional properties withexactOptionalPropertyTypes
Patch Changes
Support explicit
undefinedfor optional properties withexactOptionalPropertyTypes
2.1.8
3 Mar 2026react: Avoid duplicate
optionskey warning in reactive middleware wrappers
Patch Changes
react: Avoid duplicate
optionskey warning in reactive middleware wrappers
2.1.4 – 2.1.74 releases that only update dependencies@floating-ui/dom 1.7.5Show each
- 2.1.727 Jan 2026@floating-ui/dom 1.7.5
- 2.1.621 Aug 2025@floating-ui/dom 1.7.4
- 2.1.530 Jul 2025@floating-ui/dom 1.7.3
- 2.1.428 Jun 2025@floating-ui/dom 1.7.2
2.1.3
2 Jun 2025useFloating: Correct
transformdefault doc (@default trueinstead of@default false)
2.1.2
15 Sep 2024useFloating: Avoid setting
isPositionedto true whenopenis false
2.1.1
25 Jun 2024Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
2.1.0
20 May 2024Support dependency array as a second argument of all middleware. This ensures stateful options can be kept reactive when making them derived (passing a function that returns the options):
Minor Changes
Support dependency array as a second argument of all middleware. This ensures stateful options can be kept reactive when making them derived (passing a function that returns the options):
const [value, setValue] = React.useState(0); const offset1 = offset(value); // reactive const offset2 = offset(() => value); // NOT reactive const offset3 = offset(() => value, [value]); // reactive
This also includes
size'sapplyfunction:size( { apply() { value; // reactive }, }, [value], );2.0.9
28 Apr 2024types: Replace
React_2withReactin generated .d.ts files
2.0.7 – 2.0.82 releases that only update dependencies@floating-ui/dom 1.6.1Show each
- 2.0.828 Jan 2024@floating-ui/dom 1.6.1
- 2.0.726 Jan 2024@floating-ui/dom 1.6.0
2.0.6
16 Jan 2024Make
whileElementsMountedreactive with respect to changing from a function toundefined
2.0.5
6 Jan 2024Only updates a dependency:@floating-ui/dom 1.5.4
2.0.4
9 Nov 2023Package type import
2.0.3
8 Nov 2023Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
2.0.2
28 Aug 2023types: Import types from
dominstead ofcore
2.0.1
11 Jun 2023Adjust types for new function options feature in
core/dom1.3.0
2.0.0
30 Apr 2023- breaking
Default
xandycoordinates to0instead ofnullisPositionedlets you know if the floating element has been positioned. - breaking
Remove deprecated top-level
referenceandfloatingref settersThese are in the
refsobject: - breaking
whileElementsMountedtype requires cleanup function
This release aims to simplify the API and remove some deprecated properties. If you've been using the
refs.set*functions since their addition in January (1.2.0), then you can freely upgrade without changing any of your code.Breaking Changes
- breaking
Default
xandycoordinates to0instead ofnullisPositionedlets you know if the floating element has been positioned. - breaking
Remove deprecated top-level
referenceandfloatingref settersThese are in the
refsobject:reference->refs.setReferencefloating->refs.setFloating
- breaking
whileElementsMountedtype requires cleanup function
New Features
floatingStylesobjectPre-configured positioning styles for the majority of cases:
const {refs, floatingStyles} = useFloating(); return <div ref={refs.setFloating} style={floatingStyles} />;External element synchronization in the hook
Avoid using layout effects:
const {refs} = useFloating({ elements: { // Either can be specified optionally reference: referenceElement, floating: floatingElement, }, }); // refs.setReference / refs.setFloating can be mix and matched
Bug Fixes
types: Allow
nullforarrow'selementoption
- 1.x
1.3.0
12 Feb 2023Reading the note…
1.2.2
28 Jan 2023Reading the note…
1.2.1
16 Jan 2023Reading the note…
1.2.0
10 Jan 2023Reading the note…
1.1.2
7 Jan 2023Reading the note…
1.1.1
3 Jan 2023Reading the note…
1.1.0
26 Dec 2022Reading the note…
1.0.1
15 Nov 2022Reading the note…
1.0.0
19 Jul 2022Reading the note…
- 0.7.x
0.7.2
12 Jun 2022Reading the note…
0.7.1
20 May 2022Reading the note…
0.7.0
7 May 2022Reading the note…
- 0.6.x
0.6.3
18 Apr 2022Reading the note…
0.6.2
12 Apr 2022Reading the note…
0.6.1
31 Mar 2022Reading the note…
0.6.0
8 Mar 2022Reading the note…
- 0.5.x
0.5.0
25 Feb 2022Reading the note…
- 0.4.x
0.4.3
9 Jan 2022Reading the note…
0.4.2
6 Jan 2022Reading the note…
0.4.1
30 Dec 2021Reading the note…
0.4.0
28 Dec 2021Reading the note…
- 0.3.x
0.3.4
21 Dec 2021Reading the note…
0.3.3
11 Dec 2021Reading the note…
0.3.2
8 Dec 2021Reading the note…
0.3.1
8 Dec 2021Reading the note…
0.3.0
5 Dec 2021Reading the note…
- 0.2.x
0.2.1
4 Dec 2021Reading the note…
0.2.0
3 Dec 2021Reading the note…
- 0.1.x
0.1.3
2 Dec 2021Reading the note…
0.1.2
1 Dec 2021Reading the note…