Powerful positioning primitives.
Floating UI is a low-level toolkit to position floating elements while intelligently keeping them in view. Tooltips, popovers, dropdowns, menus, and more.
Places your floating element on 12 core positions.
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.
Position 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
The ability to easily craft beautiful and accessible tooltips, popovers, dropdowns, and more is in development.
A floating element to describe or add additional information to another element, such as a button.
An interactive menu of selectable items and potential submenus.
A floating element displaying rich, optionally interactive HTML content.
The @floating-ui/components package is in development. Consider supporting the future of this project through sponsorship:Sponsor