floating-ui/floating-ui
A JavaScript library to position floating elements and create interactions for them. observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 99
- Release rhythm 80
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 3809
- days_rel: 53
- days_push: 7
- n_releases_24m: 68
Adoption not part of the score
32709 stars · 1696 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Floating UI is a small JavaScript/TypeScript library for positioning floating elements like tooltips, popovers, and dropdowns anchored to reference elements, with viewport collision avoidance. It also provides React hooks and components for building accessible floating UI interactions.
Use cases
- position a tooltip next to a button
- create an accessible dropdown menu in React
- keep a popover in view when scrolling
- build a combobox or select menu
- avoid viewport collisions for floating elements
- anchor an element to the mouse cursor
- build headless UI components like dialogs and hover cards
When to choose
- you need robust anchor positioning with collision detection for tooltips, popovers, or menus
- you want low-level primitives to build your own accessible floating components
- you need framework-agnostic positioning or React Native support
- bundle size matters and you want tree-shakeable, modular code
When to avoid
- you want pre-built, styled UI components out of the box
- you only need simple CSS-only positioning without dynamic collision handling
- you are not working in a DOM or React environment
Facets
library · maturity stable
ui-components frontend-framework animation frontend web-development accessibility developer-tools browser cross-platform tooltip-positioning popover dropdown anchor-positioning react-hooks headless-ui collision-detection typescript nodejs web-server
4 sources
- readme: https://github.com/floating-ui/floating-ui · fetched 2026-08-28 · 3b914ba0d0bb
- homepage: https://floating-ui.com · fetched 2026-08-29 · 4ed9df4a68e2
- site_page: https://floating-ui.com/docs/getting-started · fetched 2026-08-29 · 844de5935f25
- site_page: https://floating-ui.com/docs/react · fetched 2026-08-29 · 475bbb455f31
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| floating-ui/floating-ui | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="floating-ui/floating-ui")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem