Floating UI is a low-level toolkit to create floating elements. Tooltips, popovers, dropdowns, menus, and more.
Flip
Changes the placement of your floating element to keep it in view.
Scroll the container
Virtual
Anchor relative to any coordinates, such as your mouse cursor.
Move your mouse
Tooltip
Light as a feather.
The core is only 600 bytes when minified and compressed with Brotli. Plus, the architecture is super modular, so tree-shaking works like a charm.
computePosition()
+0.6 kBshift()
+0.6 kBlimitShift()
+0.2 kBflip()
+0.5 kBhide()
+0.2 kBoffset()
+0.1 kBautoPlacement()
+0.4 kBsize()
+0.3 kBinline()
+0.6 kBDOM platform
+1.9 kBSupport Floating UI's future.
Ongoing work is making Floating UI the best, 100% free solution in this space. We are proudly sponsored by the following organizations, consider joining them on Open Collective!

Usetiful
User onboarding and product adoption made simple

Modern Treasury
The one place to keep a business’s money flowing
Ready to install?
Start playing via your package manager or CDN.