Floating UI is a low-level toolkit to create floating elements. Tooltips, popovers, dropdowns, menus, and more.
Places your floating element relative to another one.
Shifts your floating element to keep it in view.
Changes the placement of your floating element to keep it in view.
Changes the size of your floating element to keep it in view.
Dynamically positions an arrow element that is center-aware.
Anchor relative to any coordinates, such as your mouse cursor.
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.
DOM platform+1.9 kB
Support 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!
User onboarding and product adoption made simple
The one place to keep a business’s money flowing