{
 "kind": "tool",
 "slug": "radix-ui",
 "path": "tools/radix-ui/",
 "name": "Radix UI",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "UI components and icons",
   "tools/ui-components/"
  ]
 ],
 "lead": "Accessible menus, dialogs and tabs for React.",
 "chips": [
  {
   "label": "UI components and icons",
   "path": "tools/ui-components/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @radix-ui/react-slot"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/radix-ui/primitives"
  },
  {
   "label": "Website",
   "href": "https://radix-ui.com/primitives"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
   "note": "MIT allows use in paid and closed-source apps.",
   "src": "https://github.com/radix-ui/primitives/blob/main/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Oct 14, 2026",
   "note": "",
   "src": "https://github.com/radix-ui/primitives"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "814 projects",
   "status": "info",
   "sub": "#3 of 230 in its category",
   "note": "Dependency in 814 public GitHub projects set up for AI coding agents that we scanned (13.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Radix UI does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Pop-up forms and confirmations",
       "text": "An \"Edit profile\" window opens over the page; focus stays inside it, and Esc or the close button returns people to where they were.",
       "idea": false
      },
      {
       "title": "Action menus on a button",
       "text": "A \"More actions\" button opens a list such as Export, Duplicate and Delete that also works with arrow keys and typing the first letter.",
       "idea": false
      },
      {
       "title": "Settings split into tabs",
       "text": "A settings page shows Account, Notifications and Billing as tabs that people can also switch with the arrow keys.",
       "idea": false
      },
      {
       "title": "On and off switches with labels",
       "text": "Rows like \"Email me about new orders\" get a switch that screen readers announce as on or off, tied to its label.",
       "idea": false
      },
      {
       "title": "Hints on icon buttons",
       "text": "A small \"?\" or icon button shows a short hint on hover or keyboard focus, and Esc hides it.",
       "idea": false
      },
      {
       "title": "The base of your own components",
       "text": "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.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Radix UI popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "85",
       "of": "/ 100",
       "l": "Gid Score, #41 overall"
      },
      {
       "n": "241M",
       "l": "downloads a week, npm"
      },
      {
       "n": "19.6K",
       "l": "GitHub stars"
      },
      {
       "n": "814",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Radix UI is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "444 projects, 18.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "389 projects, 11.9%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "356 projects, 11.7%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "57 projects, 12.0%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "51 projects, 18.3%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "48 projects, 10.2%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "35 projects, 10.2%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "27 projects, 24.3%",
       "v": "Roo Code",
       "path": "agents/roo-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 95.7% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 95.3% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 95.0% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 93.7% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 98.9% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 97.1% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 65.8% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 56.9% of its projects",
       "v": "Sonner",
       "path": "tools/sonner/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Radix UI in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Wrap a slotted element without losing Slot's props",
       "v": "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.\""
      },
      {
       "l": "Clearer errors for invalid slot children",
       "v": "The same release notes list \"Improved error messages for invalid slot children.\" They do not give examples of the new messages."
      },
      {
       "l": "Adopt it piece by piece",
       "v": "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.\""
      },
      {
       "l": "Bundlers can drop unused parts",
       "v": "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.\""
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Slot caused a React 19 re-render loop",
       "v": "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.\""
      },
      {
       "l": "A second React 19 loop, component not named",
       "v": "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."
      },
      {
       "l": "<code>asChild</code> plus a placeholder logged errors",
       "v": "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."
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Radix UI",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Packages around it",
       "items": [
        "@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"
       ]
      },
      {
       "title": "More in UI components and icons",
       "path": "tools/ui-components/",
       "items": [
        {
         "text": "Lucide React",
         "path": "tools/lucide-react/"
        },
        {
         "text": "Class Variance Authority",
         "path": "tools/class-variance-authority/"
        },
        {
         "text": "Sonner",
         "path": "tools/sonner/"
        },
        {
         "text": "cmdk",
         "path": "tools/cmdk/"
        },
        {
         "text": "React Day Picker",
         "path": "tools/react-day-picker/"
        },
        {
         "text": "Vaul",
         "path": "tools/vaul/"
        },
        {
         "text": "react-resizable-panels",
         "path": "tools/react-resizable-panels/"
        },
        {
         "text": "shadcn/ui",
         "path": "tools/shadcn/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Radix UI",
       "me": true,
       "facts": [
        "MIT",
        "Gid 85",
        "241M/wk"
       ]
      },
      {
       "name": "shadcn/ui",
       "why": "Pick shadcn/ui when you want ready-styled components to copy into your app; they are built on Radix and Tailwind CSS.",
       "path": "tools/shadcn/",
       "facts": []
      },
      {
       "name": "Base UI",
       "why": "Pick Base UI when you want another set of unstyled, accessible React components and hooks.",
       "path": "tools/base-ui-react/",
       "facts": []
      },
      {
       "name": "React Aria Components",
       "why": "Pick React Aria Components for an unstyled, accessible React library built on React Aria.",
       "path": "tools/react-aria-components/",
       "facts": []
      }
     ],
     "more": "Compare Radix UI with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install the single radix-ui package (pin the version in your project).",
       "code": "npm install radix-ui",
       "src": "https://www.radix-ui.com/primitives/docs/overview/introduction"
      },
      {
       "text": "Import the parts of one primitive and put them together.",
       "code": "import { Tabs } from \"radix-ui\";\n\nexport default () => (\n\t<Tabs.Root>\n\t\t<Tabs.List>\n\t\t\t<Tabs.Trigger />\n\t\t</Tabs.List>\n\t\t<Tabs.Content />\n\t</Tabs.Root>\n);\n",
       "src": "https://www.radix-ui.com/primitives/docs/components/tabs"
      },
      {
       "text": "Style each part with a className and its state with the data-state attribute.",
       "code": ".AccordionItem[data-state=\"open\"] {\n\tborder-bottom-width: 2px;\n}\n",
       "src": "https://www.radix-ui.com/primitives/docs/guides/styling"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Radix UI Slot\n- 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.\n- 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.\n- 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;`.\n- Look up component APIs at radix-ui.com/primitives/docs. The README itself only covers installing pnpm and running `pnpm install`.\n"
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "<Tooltip.Root> without a Tooltip.Provider around it",
       "fix": "Wrap the app (or the area) in <Tooltip.Provider> once",
       "why": "In our run a Tooltip without the provider threw: `Tooltip` must be used within `TooltipProvider`."
      },
      {
       "dont": "Mixing @radix-ui/react-dialog, @radix-ui/react-popover and others at different versions",
       "fix": "Use the single radix-ui package, or update every @radix-ui/react-* package together",
       "why": "Mixed versions duplicate shared parts and grow the bundle."
      },
      {
       "dont": "require(\"radix-ui\") or importing the root in a setup that cannot drop unused code",
       "fix": "Import one primitive from its subpath, e.g. import * as Dialog from \"radix-ui/dialog\"",
       "why": "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."
      },
      {
       "dont": "Expecting a ready look (backdrop, menu shadow, active tab line) out of the box",
       "fix": "Write CSS for each part, using className and [data-state=open|checked|active]",
       "why": "Radix ships no styles at all, including functional ones such as a full-screen overlay."
      },
      {
       "dont": "npm install radix-ui@latest in generated setup steps",
       "fix": "Pin the version you tested, e.g. radix-ui@1.8.1, and upgrade on purpose",
       "why": "The getting-started page uses @latest; a pinned version keeps builds repeatable."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Do I install one package or many?",
       "a": "The docs recommend the single radix-ui package. Separate @radix-ui/react-* packages also work; then update them all together.",
       "evidence": {
        "url": "https://www.radix-ui.com/primitives/docs/overview/introduction",
        "quote": "When installing separately, we recommend updating all Radix packages together to prevent duplication of shared dependencies and keep your bundle size down."
       }
      },
      {
       "q": "How do I style it with Tailwind or plain CSS?",
       "a": "Every part takes a className, and parts with state carry data-state, such as data-state=\"open\" or \"checked\", for your CSS.",
       "evidence": {
        "url": "https://www.radix-ui.com/primitives/docs/guides/styling",
        "quote": "All components and their parts accept a className prop."
       }
      },
      {
       "q": "Can I make a link open a tooltip instead of a button?",
       "a": "Yes, with the asChild prop Radix passes its behaviour to your own element, which then must stay focusable.",
       "evidence": {
        "url": "https://www.radix-ui.com/primitives/docs/guides/composition",
        "quote": "All Radix primitive parts that render a DOM element accept an asChild prop."
       }
      },
      {
       "q": "Is it maintained?",
       "a": "Yes. radix-ui 1.8.1 was published on 2026-10-12, and the releases page lists fixes from July 2026.",
       "evidence": {
        "url": "https://www.radix-ui.com/primitives/docs/overview/releases",
        "quote": "Fixed broken aria references in dialogs where Title or Description elements are not rendered."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @radix-ui/react-slot"
  ],
  [
   "Category",
   "UI components and icons"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "1.5.0, October 12, 2026"
  ],
  [
   "On GitHub since",
   "June 2020"
  ],
  [
   "Gid Score",
   "85.1"
  ],
  [
   "Rank in category",
   "#3 of 230"
  ],
  [
   "GitHub",
   "radix-ui/primitives"
  ],
  [
   "Last change",
   "Oct 14, 2026"
  ]
 ],
 "good": [
  "It is made for React apps and needs React and React DOM, version 16.8 or newer.",
  "You write all the styles, even basic ones. A dialog's dark backdrop does not cover the screen until you style it.",
  "Labels are still your job. Icon-only buttons need a text label so screen readers can name them."
 ],
 "checked_line": "Read by AgentGid from 16 official pages, card checked Nov 10, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/radix-ui.png"
}