Floating UI
Toolkit for positioning popovers, tooltips, dropdowns and other floating elements.
UI components and icons npm MIT
Used in agent projects
56
0.4% of 12,697 public repos built with AI coding agents
Rank in ui components and icons
#32 of 75
by use in those projects
Downloads
25.5M
npm, last 7 days, @floating-ui/react
GitHub stars
32.8K
last push Sep 28, 2026
How Floating UI is used
Floating UI is a dependency in 56 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.4%), #32 of 75 in ui components and icons. The most used alternative there is Lucide React. Projects that use it most often also use Vitest (57.1%), Testing Library (48.2%), tsx (48.2%).
Often used with Floating UI
| Vitest | 57.1% of Floating UI projects · 4.7× more than average |
|---|---|
| Testing Library | 48.2% of Floating UI projects · 6.7× more than average |
| tsx | 48.2% of Floating UI projects · 4.9× more than average |
| Playwright (JavaScript) | 46.4% of Floating UI projects · 5.3× more than average |
| Zod | 55.4% of Floating UI projects · 3.3× more than average |
| Prettier | 53.6% of Floating UI projects · 3.1× more than average |
| TypeScript | 94.6% of Floating UI projects · 1.7× more than average |
| Vite | 58.9% of Floating UI projects · 2.6× more than average |
By coding agent
| Claude Code | 1.1% of projects set up for it |
|---|---|
| GitHub Copilot | 0.8% of projects set up for it |
| Cursor | 0.9% of projects set up for it |
| OpenAI Codex | 2.0% of projects set up for it |
Share of public repos configured for each agent that list Floating UI as a dependency.
Install
| Package | npm install @floating-ui/react |
|---|---|
| Packages counted | @floating-ui/react, @floating-ui/dom, @floating-ui/react-dom, @floating-ui/core, @floating-ui/utils, @floating-ui/vue |
| Main stacks | TypeScript / JavaScript (31), Next.js (22), PHP (2), Python (1) |
| Example projects | 1600822305/AetherLink, amelioro/ameliorate, linuxscreen/duo-translator, Khan/wonder-blocks, cablelabs/os-provisioning |
Alternatives to Floating UI
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Lucide React npm Comprehensive icon library with consistent design for React applications. |
2,519 (19.8%) | 108M | 24.9K | ISC |
| Class Variance Authority npm Type-safe CSS class composition for component variants and styling. |
1,791 (14.1%) | 66.3M | 6,903 | Apache-2.0 |
| Radix UI npm Unstyled, accessible component primitives for building design systems. |
1,519 (12.0%) | 182M | 19.4K | MIT |
| Sonner npm Opinionated toast notification component for React applications. |
1,025 (8.1%) | 49.6M | 13K | MIT |
| React Icons npm Popular icon packs imported as React components with ES6. |
688 (5.4%) | 8.8M | 12.7K | MIT |
| cmdk npm Command menu component library for React applications. |
687 (5.4%) | 42.2M | 13K | MIT |
| React Day Picker npm Flexible and customizable date picker component for React. |
675 (5.3%) | 42.8M | 6,859 | MIT |
| Vaul npm Unstyled, accessible drawer component for React with smooth animations. |
582 (4.6%) | 35M | 8,638 | MIT |