Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Radix UI

Accessible menus, dialogs and tabs for React.

UI components and iconsNPM

GitHubWebsite

1. License

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”

MIT allows use in paid and closed-source apps.

github.com/radix-ui/primitives/blob/main/LICENSE

From the package registry and GitHub, checked daily; card checked Nov 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What Radix UI does

Radix Primitives is a free set of building blocks for React apps, such as pop-up dialogs, dropdown menus, tabs, switches and tooltips. They handle keyboard use, focus and screen reader labels for you, but come without any look. You or your AI assistant add the styles, so they fit any design.

What people build with it

Pop-up forms and confirmations

An "Edit profile" window opens over the page; focus stays inside it, and Esc or the close button returns people to where they were.

Action menus on a button

A "More actions" button opens a list such as Export, Duplicate and Delete that also works with arrow keys and typing the first letter.

Settings split into tabs

A settings page shows Account, Notifications and Billing as tabs that people can also switch with the arrow keys.

On and off switches with labels

Rows like "Email me about new orders" get a switch that screen readers announce as on or off, tied to its label.

Hints on icon buttons

A small "?" or icon button shows a short hint on hover or keyboard focus, and Esc hides it.

The base of your own components

Your team builds its own buttons-and-menus kit on top of Radix and styles it once, or swaps in one piece at a time.

Radix UI popularity

85 / 100
Gid Score, #41 overall
241M
downloads a week, npm
19.6K
GitHub stars
814
agent projects use it
Radix UI: downloads per weeknpm, @radix-ui/react-slot 241,479,325
Radix UI: GitHub starsradix-ui/primitives 19,554

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Radix UI is used

  • Radix UI is a dependency in 814 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (16.7% of the 4,867 JavaScript/TypeScript ones), #3 of 230 in ui components and icons.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 3,317; those are left out of every share on this page.
  • Projects that use it most often also use Tailwind Merge (95.7%), clsx (95.3%), Lucide React (95.0%).
  • It is more common in projects set up for Roo Code (24.3%) than for OpenAI Codex (10.2%).

By coding agent

444 projects, 18.2%
389 projects, 11.9%
356 projects, 11.7%
57 projects, 12.0%
51 projects, 18.3%
48 projects, 10.2%
35 projects, 10.2%
27 projects, 24.3%

Often used with

In 95.7% of its projects
In 95.3% of its projects
In 95.0% of its projects
In 93.7% of its projects
In 98.9% of its projects
In 97.1% of its projects
In 65.8% of its projects
In 56.9% of its projects

Radix UI in practice

Strengths

Wrap a slotted element without losing Slot's props

The June 6, 2026 release added a render prop for nested <code>Slottable</code> items. The changelog says a slotted element can now be wrapped "while still merging Slot props and refs onto it."

Clearer errors for invalid slot children

The same release notes list "Improved error messages for invalid slot children." They do not give examples of the new messages.

Adopt it piece by piece

This applies to Primitives as a whole. The README says you can use the components as the base layer of a design system, or "adopt them incrementally."

Bundlers can drop unused parts

In the July 20, 2026 release, the maintainers marked component parts across Primitives <code>/* @__PURE__ */</code> and replaced <code>displayName</code> assignments with named render functions. They write that the old assignments "previously prevented dead-code elimination with some bundlers."

Watch out for

Slot caused a React 19 re-render loop

The June 6, 2026 release notes list a fix for an infinite re-render loop in React 19 "caused by Slot creating a new ref callback on every render."

A second React 19 loop, component not named

The June 30, 2026 release fixed another infinite re-render loop in React 19, this one "caused by unstable composed ref callback references." The changelog does not say which component was affected.

<code>asChild</code> plus a placeholder logged errors

The June 6, 2026 notes fixed <code>Select.Value</code> logging invalid prop errors when it was given both <code>asChild</code> and a placeholder.

More about Radix UI

Packages around it
  • @radix-ui/react-dialog: Radix Dialog
  • @radix-ui/react-label: Radix Label
  • @radix-ui/react-dropdown-menu: Radix Dropdown Menu
  • @radix-ui/react-select: Radix Select
  • @radix-ui/react-tooltip: Radix Tooltip
  • @radix-ui/react-separator: Radix Separator
More in UI components and icons

Alternatives

Radix UI This page

MITGid 85241M/wk

shadcn/ui

Pick shadcn/ui when you want ready-styled components to copy into your app; they are built on Radix and Tailwind CSS.

Base UI

Pick Base UI when you want another set of unstyled, accessible React components and hooks.

React Aria Components

Pick React Aria Components for an unstyled, accessible React library built on React Aria.

Compare Radix UI with another tool

Get started

Tell your AI assistant

“Use radix-ui 1.8.1 (React 18 or 19) for the settings page tabs, the switches with labels, the More actions dropdown and the help tooltip; style them with our CSS using className and [data-state], and wrap the app in Tooltip.Provider.”

  1. Install the single radix-ui package (pin the version in your project).

    npm install radix-ui

    From radix-ui.com/primitives/docs/overview/introduction

  2. Import the parts of one primitive and put them together.

    import { Tabs } from "radix-ui";
    
    export default () => (
    	<Tabs.Root>
    		<Tabs.List>
    			<Tabs.Trigger />
    		</Tabs.List>
    		<Tabs.Content />
    	</Tabs.Root>
    );
    

    From radix-ui.com/primitives/docs/components/tabs

  3. Style each part with a className and its state with the data-state attribute.

    .AccordionItem[data-state="open"] {
    	border-bottom-width: 2px;
    }
    

    From radix-ui.com/primitives/docs/guides/styling

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## Radix UI Slot
- To wrap a slotted element and keep Slot's props and refs merged onto it, use nested `Slottable` items with a render prop. The changelog lists this support in the June 6, 2026 release.
- When debugging an infinite re-render loop under React 19, note that the June 6, 2026 release fixed one caused by Slot creating a new ref callback on every render. Check the installed version.
- To render your own element in place of a part, pass `asChild` and put your element inside, as the site's `StatusTooltip` example does with `&lt;Tooltip.Trigger asChild&gt;`.
- Look up component APIs at radix-ui.com/primitives/docs. The README itself only covers installing pnpm and running `pnpm install`.

Mistakes to avoid

<Tooltip.Root> without a Tooltip.Provider around it
Wrap the app (or the area) in <Tooltip.Provider> once

In our run a Tooltip without the provider threw: `Tooltip` must be used within `TooltipProvider`.

Mixing @radix-ui/react-dialog, @radix-ui/react-popover and others at different versions
Use the single radix-ui package, or update every @radix-ui/react-* package together

Mixed versions duplicate shared parts and grow the bundle.

require("radix-ui") or importing the root in a setup that cannot drop unused code
Import one primitive from its subpath, e.g. import * as Dialog from "radix-ui/dialog"

The root entry loads every primitive; in our run require("radix-ui") failed until all of them were present, while the subpaths loaded only what they need.

Expecting a ready look (backdrop, menu shadow, active tab line) out of the box
Write CSS for each part, using className and [data-state=open|checked|active]

Radix ships no styles at all, including functional ones such as a full-screen overlay.

npm install radix-ui@latest in generated setup steps
Pin the version you tested, e.g. radix-ui@1.8.1, and upgrade on purpose

The getting-started page uses @latest; a pinned version keeps builds repeatable.

Questions

Do I install one package or many?

The docs recommend the single radix-ui package. Separate @radix-ui/react-* packages also work; then update them all together.

How do I style it with Tailwind or plain CSS?

Every part takes a className, and parts with state carry data-state, such as data-state="open" or "checked", for your CSS.

Can I make a link open a tooltip instead of a button?

Yes, with the asChild prop Radix passes its behaviour to your own element, which then must stay focusable.

Is it maintained?

Yes. radix-ui 1.8.1 was published on 2026-10-12, and the releases page lists fixes from July 2026.