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/LICENSE2. Maintained
github.com/radix-ui/primitives3. Used by agents' projects
Dependency in 814 public GitHub projects set up for AI coding agents that we scanned (13.0%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
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
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
Often used with
Radix UI in practice
Strengths
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."
The same release notes list "Improved error messages for invalid slot children." They do not give examples of the new messages.
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."
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
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."
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.
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
Pick shadcn/ui when you want ready-styled components to copy into your app; they are built on Radix and Tailwind CSS.
Pick Base UI when you want another set of unstyled, accessible React components and hooks.
Pick React Aria Components for an unstyled, accessible React library built on React Aria.
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.”
Install the single radix-ui package (pin the version in your project).
npm install radix-uiImport 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> );Style each part with a className and its state with the data-state attribute.
.AccordionItem[data-state="open"] { border-bottom-width: 2px; }
Rules for your agent
## 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 `<Tooltip.Trigger asChild>`.
- Look up component APIs at radix-ui.com/primitives/docs. The README itself only covers installing pnpm and running `pnpm install`.
Mistakes to avoid
In our run a Tooltip without the provider threw: `Tooltip` must be used within `TooltipProvider`.
Mixed versions duplicate shared parts and grow the bundle.
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.
Radix ships no styles at all, including functional ones such as a full-screen overlay.
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.