Overview
Short answer: use shadcn/ui, built on Base UI or Radix, for most of your app. Add Sonner for toasts, Vaul for drawers, cmdk for command menus and NumberFlow for changing numbers, because those are the components AI gets wrong when it builds them itself. Then pull one designed component per page from Beautiful UI, RareUI, Magic UI, Aceternity or 21st.dev.
One of the easiest ways to make AI-built UI look better is to stop letting the model build every component from scratch. Ask for a toast, a command menu or a loading state and it writes a new one with default styling every time. It doesn't know how a toast should stack, or how a drawer should feel when you drag it. A component library hands the model someone else's taste, and each kind of library does a different job.
For animation, dashboards and AI agents, I wrote a separate guide to 6 specialized UI libraries: 6 React UI Libraries for Animation, Dashboards and AI Agents
Which library should I pick? Here's the short version:

The three kinds of UI component library
- Foundations (shadcn/ui, Base UI, Radix) give you the behavior of a component: keyboard navigation, focus and accessibility. You do the styling. Use them for most of your app.
- Specialists (Sonner, Vaul, cmdk, NumberFlow) each do one component really well. Use them for the details that make a product feel finished.
- Designed components (Bencho, Beautiful UI, RareUI, Magic UI, Aceternity, 21st.dev) are finished, styled pieces you copy into your project. Use them for the moments you want people to notice.
The kinds stack: shadcn/ui for buttons, inputs, dialogs, dropdowns and tabs, Sonner for notifications, and one animated section from a designed library on the landing page.
Foundations: shadcn/ui, Base UI and Radix
shadcn/ui
shadcn/ui describes itself as "not a component library" but a way to build your own. Its CLI copies each component's code into your project instead of hiding it in an npm package, so you own the code and Claude can read and change all of it. The docs let you build each component on Base UI or Radix underneath.
One thing to watch for: default shadcn has become an AI look of its own. If you have used Claude Code or Lovable enough, you can spot it right away: the same radius, the same gray, the same font. Treat it as a starting point and change the radius, the colors and the type so it looks like your product. Those three carry most of the personality. A tighter radius and a serif heading can make the same components feel like an editorial product instead of a SaaS template, and Claude is good at this if you give it your brand colors and fonts up front.
Base UI
Base UI is a library of unstyled React components for building accessible interfaces, from the creators of Radix, Floating UI and Material UI. It handles behavior and accessibility and leaves every visual decision to you, which makes it a clean base for a design system that should not look like anyone else's.
Radix Primitives
Radix Primitives are unstyled, accessible, open source React primitives, made by WorkOS. Each one documents its keyboard and focus behavior: the Dialog has modal and non-modal modes with fine-grained focus control, and the Dropdown Menu supports submenus, arrow key navigation and typeahead.



All-in-one libraries: Material UI, Mantine, Chakra UI, Ant Design, HeroUI and React Aria
These are the libraries most "best React UI library" lists lead with. Each one ships a large, styled component set and a theme system, so you can build a full app without picking pieces. The trade-off is that your app starts out looking like the library, and restyling it takes longer than with code you own.
Material UI (MUI)
Material UI implements Google's Material Design. Its MUI X add-ons include a data grid and date pickers: the base versions are free (MIT), and the Pro and Premium tiers, with column pinning, row grouping and Excel export, are paid. Pick it for data-heavy internal tools, or when your team already knows Material. Site: mui.com
Mantine
Mantine says it has 120+ components and 70+ hooks, with styles shipped as plain CSS files, so there is no CSS-in-JS runtime. It is MIT licensed. It is the most complete free kit here and a good default for dashboards and SaaS apps when you want everything in one place. Site: mantine.dev
Chakra UI
Chakra UI v3 is built on Ark UI and Zag.js, with style props for quick layout. It still uses Emotion, a runtime CSS-in-JS library, though its team has said removing Emotion is a 2026 priority. Site: chakra-ui.com
Ant Design
Ant Design describes itself as an enterprise-class design language and React UI library. It has dense tables, forms and admin patterns out of the box, plus Ant Design Pro for full admin templates. Pick it for back-office tools where density matters more than brand. Site: ant.design
HeroUI (formerly NextUI)
HeroUI, previously called NextUI, is built on Tailwind CSS v4 and React Aria. It looks polished by default and fits Tailwind projects that want styled components without copying code in. Site: heroui.com
React Aria
React Aria is Adobe's library of accessibility-first hooks and unstyled components (react-aria-components), tested with screen readers and built to the W3C ARIA patterns. It is the strongest choice when accessibility is a hard requirement and you are building your own design system on top. Site: react-aria.adobe.com
Material UI or shadcn/ui? Choose Material UI if you want a finished look and a data grid on day one. Choose shadcn/ui if you want your product to look like your brand and want Claude to be able to read and change every component.
Specialists: Sonner, Vaul, cmdk and NumberFlow
Sonner for toasts
Sonner is an opinionated toast component for React, made by Emil Kowalski. It handles how toasts stack, how the stack expands when you hover it, and how each toast animates in and out. You render one <Toaster /> at the root of your app and call toast() anywhere. It installs with npm install sonner.
Vaul for drawers
Vaul is a drawer component for React, also by Emil Kowalski: the kind you drag up from the bottom on mobile and flick down to close. Install it with pnpm i vaul.
cmdk for command menus
cmdk is a fast, unstyled command menu component for React, the search box you open with ⌘K. You render items and it filters and sorts them, and it also works as an accessible combobox. Its old site, cmdk.paco.me, now redirects to the GitHub repo at github.com/dip/cmdk. shadcn/ui's Command component is built on it, so if you use shadcn you may already have it.
NumberFlow for animated numbers
NumberFlow animates a number when its value changes, so a price or a count ticks over instead of jumping. Its site calls it dependency-free, accessible and customizable, and it takes standard Intl.NumberFormat options for currencies, percentages and compact notation.
You usually notice these components when they're missing. When AI builds toasts itself, they tend to pile on top of each other or vanish before you can read them. A hand-built drawer often won't drag at all; it opens and closes. A homemade command menu usually breaks the moment you use it with the keyboard. None of these are big features, but they are the details that make a product feel finished, and they are exactly the details AI skips when it builds from scratch.



The pick-ui-library skill
Emil Kowalski also publishes a Claude skill called pick-ui-library. When you invoke it with a task ("I need toasts", "what should I use for drag and drop?"), it matches the task to his curated list and recommends one library with one sentence on why, instead of a menu of options. The list includes Base UI for accessible primitives, cmdk for command menus, Sonner for toasts, input-otp for verification codes, motion for animation and NumberFlow for animated numbers.
The part I like most is its list of common mismatches to catch: toasts built by hand point to Sonner, a div-based dropdown with manual focus handling points to Base UI, and a number animated by re-rendering text points to NumberFlow. It also checks your package.json first and keeps a library you already use.
One detail worth knowing: the skill's frontmatter sets disable-model-invocation: true, so it only runs when you call it. It will not step in on its own when Claude starts building a toast system. Invoke it at the start of a feature, or put the same picks in your project instructions. New to skills? Here is how they work and which ones I use: Claude Skills for Designers

Designed components: Bencho, Beautiful UI, RareUI, Magic UI, Aceternity and 21st.dev
Bencho, for micro-interactions
Bencho bencho.dev is a library of interactive React components and micro-interactions made for AI agents to build with. You browse by interaction, like hover, press, drag, slide, swipe, type, select and loading, try each component live on the site, then hand it to Claude, Cursor or Codex to drop into your project. It is free to join, with paid plans, and says 13,508 designers and developers use it (as of November 2026). I reach for it when a screen works but feels static.
Beautiful UI, for AI products
If you are building an AI product, Beautiful UI is the one I would look at first. It is built by Turbo, a product design studio, specifically for AI-native interfaces: loading and thinking states, streaming text with inline sources, approval cards for when an agent needs permission, tool chips, task rows, a diff table and an agent screen. Most component libraries were made before AI products existed, so they don't cover these states yet. Each component has a Copy code button on the site.
RareUI, for flashy moments
RareUI is a free React library for the flashy moments: animated buttons, text effects and interactive backgrounds. You install a component with one command (pnpm dlx rareui add liquid-button) and the code lands in your project so you can edit it.
Magic UI, on top of shadcn
Magic UI has 150+ free and open source animated components and effects built with React, TypeScript, Tailwind CSS and Motion, and calls itself a companion for shadcn/ui. It fits right into the foundation above.
Aceternity UI, for landing pages
Aceternity is the one for landing page effects: 3D cards, background beams, carousels and marquees. You can install its components with the shadcn CLI (for example npx shadcn@latest add @aceternity/3d-card-demo) or have your coding agent add them.
21st.dev, the marketplace
21st.dev is a marketplace rather than one library: 12,000+ React components, templates and shadcn themes published by many design engineers. Every component ships as a prompt you paste into Claude Code, Codex or Lovable. It is the place to look when you need something specific and don't want to commit to one library. I made a full video on using it with Claude Code:
Watch on YouTube
With this whole group, keep one rule in mind: one showpiece moment per page. One animated hero or one interactive background makes a page feel designed. Ten on the same page is how you get the next AI-generated look, where everything glows and moves and nothing stands out.
Paid add-ons: Shadcnblocks, Magic UI Pro and Untitled UI
If you already use shadcn/ui and want whole page sections instead of single components, two paid libraries save the most time. Shadcnblocks is a premium library of shadcn/ui blocks built with React and Tailwind: its site lists 3,500+ blocks, 2,200+ components and 23 templates, from heroes and pricing tables to app shells. Magic UI Pro adds animated landing page sections and full templates (50+ sections and 9+ templates) on top of the free Magic UI library.
Shadcnblocks: shadcnblocks.com
Magic UI Pro: pro.magicui.design
Untitled UI is the other paid option I'd look at, especially if your team designs in Figma first. It pairs a large Figma UI kit with Untitled UI React, a React component library built on Tailwind CSS and React Aria, so the components in your designs and in your code match.
Untitled UI: untitledui.com
For dashboards, motion in everyday components and UI for AI agents, my follow-up guide covers BoardUI, Bencho, React Bits, Animate UI, Skiper UI and affectUI: 6 React UI Libraries for Animation, Dashboards and AI Agents






React UI library comparison table
| Library | Kind | Use it for | How you add it |
|---|---|---|---|
| shadcn/ui | Foundation | Most app components, as code you own | CLI copies code into your project |
| Base UI | Foundation, unstyled | Accessible primitives for your own design system | npm package |
| Radix Primitives | Foundation, unstyled | Accessible primitives for your own design system | npm package |
| Material UI | All-in-one, styled | Material Design apps and data grids (MUI X) | npm package |
| Mantine | All-in-one, styled | Complete free kit for dashboards and SaaS | npm package |
| Chakra UI | All-in-one, styled | Fast layout with style props | npm package |
| Ant Design | All-in-one, styled | Dense admin and back-office tools | npm package |
| HeroUI | All-in-one, styled | Polished Tailwind components | npm package |
| React Aria | Foundation, unstyled | Accessibility-first design systems | npm package |
| Sonner | Specialist | Toasts and notifications | npm install sonner |
| Vaul | Specialist | Drawers and mobile bottom sheets | pnpm i vaul |
| cmdk | Specialist | ⌘K command menus and comboboxes | pnpm install cmdk |
| NumberFlow | Specialist | Prices, counts and stats that change | @number-flow/react |
| Bencho | Designed | Micro-interactions: hover, press, drag, swipe, loading | Copy from the site into your agent |
| Beautiful UI | Designed | AI product states: streaming, approvals, agent screens | Copy code from the site |
| RareUI | Designed | Animated buttons and text effects | rareui add CLI |
| Magic UI | Designed | Animated sections next to shadcn/ui | Per-component docs |
| Magic UI Pro | Designed, paid | Animated landing page sections and templates | Download from the site |
| Shadcnblocks | Designed, paid | Thousands of shadcn/ui page blocks | Copy or CLI from the site |
| Untitled UI | Designed, paid | Matching Figma kit and React components (Tailwind + React Aria) | Download or CLI from the site |
| Aceternity UI | Designed | Landing page effects | shadcn CLI or your agent |
| 21st.dev | Marketplace | One specific component from many authors | Paste a prompt into your agent |
How to get Claude to use a component library
- 01Name the library in your promptSay "use shadcn for the base components and Sonner for toasts" and it will.
- 02Install through the CLI or registryThe code then lives in your project, so Claude can read it and you can change it.
- 03Give it your brand up frontColors, fonts and radius, so the defaults stop looking like every other AI app.
- 04Let pick-ui-library chooseInvoke the skill when you start a feature and don't want to think about which library fits.
If you name the same libraries in every prompt, put them in your project instructions instead, so the agent reads them on every task: How to Write an AGENTS.md File for Design Projects For the rest of the prompt, my approach to briefing AI on UI work is here: How to Prompt AI for Better UI Design
Libraries fix components; references fix layouts. For real product screens to design from, these are the reference sites I use alongside these libraries: Stop Letting AI Design From Scratch: 5 UI Reference Sites
FAQ
For most teams, shadcn/ui on top of Base UI or Radix, because it copies each component's code into your repo, so you keep full control while dropping your own buttons, dialogs and menus. If you want a finished kit instead, Mantine (free, 120+ components) or Material UI (with the MUI X data grid) replace the most in-house code at once. Add React Aria if accessibility is the reason you are replacing them.
The ones most teams compare are shadcn/ui, Material UI, Mantine, Chakra UI, Ant Design, HeroUI, Radix and React Aria. Popular is not the same as right for you: pick by whether you want code you own (shadcn/ui), a complete styled kit (Mantine, Material UI) or accessible primitives (Base UI, Radix, React Aria).
Material UI if you want a complete Material Design look and a data grid right away. shadcn/ui if your product needs its own look, because the components live in your codebase and are easy to restyle, for you and for Claude.
For most apps, shadcn/ui on top of Base UI or Radix, because it gives you accessible behavior and copies the code into your project where you and your AI agent can change it. Add specialists like Sonner, Vaul, cmdk and NumberFlow for the components that are hard to get right.
By its own description, no. shadcn/ui calls itself a way to build your own component library: its CLI copies each component's source into your project instead of installing a package you import.
Both are unstyled, accessible React component libraries. Base UI comes from the creators of Radix, Floating UI and Material UI; Radix Primitives is made by WorkOS. shadcn/ui can use either one underneath.
Beautiful UI, built by Turbo. It covers states older libraries skip: thinking and loading states, streaming text, approval cards for agent permissions, tool chips, diff tables and agent screens.
Change the radius, the colors and the type before anything else, and give Claude your brand colors and fonts up front. Then add one designed component per page, not ten.
No. Its frontmatter sets disable-model-invocation to true, so it only runs when you invoke it. When you do, it recommends one library from Emil Kowalski's curated list with a one-sentence reason.
