Headless UI
Unstyled, accessible React components designed to integrate with Tailwind CSS.
UI components and icons npm MIT
Used in agent projects
210
1.7% of 12,697 public repos built with AI coding agents
Rank in ui components and icons
#14 of 75
by use in those projects
Downloads
7.4M
npm, last 7 days, @headlessui/react
GitHub stars
28.8K
last push Apr 13, 2026
How Headless UI is used
Headless UI is a dependency in 210 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.7%), #14 of 75 in ui components and icons. The most used alternative there is Lucide React. Projects that use it most often also use Tailwind CSS (98.1%), React (95.2%), Heroicons (47.6%). It is more common in projects set up for Junie (9.6%) than for GitHub Copilot (1.2%).
Often used with Headless UI
| Tailwind CSS | 98.1% of Headless UI projects · 2.8× more than average |
|---|---|
| React | 95.2% of Headless UI projects · 2.2× more than average |
| Heroicons | 47.6% of Headless UI projects · 24.9× more than average |
| ESLint | 79.5% of Headless UI projects · 2.1× more than average |
| Next.js | 61.4% of Headless UI projects · 2.7× more than average |
| clsx | 52.4% of Headless UI projects · 3.0× more than average |
| Tailwind Merge | 49.0% of Headless UI projects · 2.9× more than average |
| TypeScript | 87.6% of Headless UI projects · 1.6× more than average |
By coding agent
| Cursor | 2.3% of projects set up for it |
|---|---|
| Claude Code | 1.3% of projects set up for it |
| GitHub Copilot | 1.2% of projects set up for it |
| Gemini CLI | 2.5% of projects set up for it |
| OpenCode | 2.8% of projects set up for it |
| Junie | 9.6% of projects set up for it |
| Devin Desktop | 2.2% of projects set up for it |
Share of public repos configured for each agent that list Headless UI as a dependency.
Install
| Package | npm install @headlessui/react |
|---|---|
| Packages counted | @headlessui/react, @headlessui/vue, @headlessui/tailwindcss |
| Main stacks | Next.js (121), TypeScript / JavaScript (50), PHP (38), Python (1) |
| Example projects | sunflower-land/sunflower-land, theskeletoncrew/treat-toolbox, sourcegraph/docs, laravel/locket, TheSolaAI/sola-application |
Alternatives to Headless 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 |