shadcn/ui
Copy-paste React component library built on Radix UI and Tailwind CSS.
UI components and icons npm MIT
Used in agent projects
328
2.6% of 12,697 public repos built with AI coding agents
Rank in ui components and icons
#11 of 75
by use in those projects
Downloads
11.8M
npm, last 7 days, shadcn
GitHub stars
125K
last push Oct 10, 2026
How shadcn/ui is used
shadcn/ui is a dependency in 328 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (2.6%), #11 of 75 in ui components and icons. The most used alternative there is Lucide React. Projects that use it most often also use Class Variance Authority (89.9%), Tailwind Merge (88.1%), clsx (87.5%).
Often used with shadcn/ui
| Class Variance Authority | 89.9% of shadcn/ui projects · 6.4× more than average |
|---|---|
| Tailwind Merge | 88.1% of shadcn/ui projects · 5.2× more than average |
| clsx | 87.5% of shadcn/ui projects · 4.9× more than average |
| Lucide React | 86.6% of shadcn/ui projects · 4.4× more than average |
| tw-animate-css | 80.2% of shadcn/ui projects · 12.0× more than average |
| Tailwind CSS | 93.9% of shadcn/ui projects · 2.7× more than average |
| Next.js | 70.7% of shadcn/ui projects · 3.1× more than average |
| next-themes | 51.8% of shadcn/ui projects · 5.9× more than average |
By coding agent
| Claude Code | 5.7% of projects set up for it |
|---|---|
| GitHub Copilot | 4.7% of projects set up for it |
| Cursor | 4.6% of projects set up for it |
| Gemini CLI | 6.2% of projects set up for it |
| OpenAI Codex | 5.1% of projects set up for it |
| OpenCode | 6.9% of projects set up for it |
| Devin Desktop | 4.7% of projects set up for it |
| Kiro | 5.5% of projects set up for it |
Share of public repos configured for each agent that list shadcn/ui as a dependency.
Install
| Package | npm install shadcn |
|---|---|
| Main stacks | Next.js (226), TypeScript / JavaScript (90), PHP (9), Python (2) |
| Example projects | miantiao-me/bm.md, kovrichard/catalyst, Asymmetric-al/core, inboundemail/inbound, 5pyj29s7cm-tech/LumiCore |
Alternatives to shadcn/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 |