talira

Radix UI

Core building blocks for your design system

open sourceMITself-hostablefree

Radix UI is WorkOS's open source (MIT) family of React UI libraries. Radix Primitives, its core, is a set of unstyled, accessible components (Dialog, Dropdown Menu, Popover, Select, Tabs, Toast, Tooltip, Navigation Menu and about 30 more) that follow the WAI-ARIA design patterns and handle focus, keyboard navigation and ARIA attributes; you install them all from the tree-shakable radix-ui package or one by one as @radix-ui/react-*. Radix Themes (@radix-ui/themes) is a pre-styled component library built on them, and Radix Icons and Radix Colors complete the set. shadcn/ui offers Radix as one of its base libraries, and the primitives support React 16.8 through 19.

Problems it solves

  • accessible dialogs, dropdown menus and popovers for React that I can style however I want
  • build our company's design system on unstyled primitives instead of writing focus traps and keyboard handling
  • headless React components that still support React 16.8 or 17 in our older app
  • adopt accessible components one at a time in an existing React codebase without a rewrite
  • a pre-styled React component library with a theme I can drop in and ship quickly
  • React select, tabs and slider components that work with screen readers out of the box
  • components that can be controlled or uncontrolled so I don't need extra state everywhere
  • a toast and tooltip implementation for React that handles focus and dismissal properly
  • an MIT-licensed component foundation I can ship in a product we distribute to customers
  • a consistent icon set and colour scales to go with my React component library

Features

  • Radix Primitives: unstyled Accordion, Alert Dialog, Checkbox, Context Menu, Dialog, Dropdown Menu, Form, Hover Card, Menubar, Navigation Menu, Popover, Select, Slider, Tabs, Toast, Tooltip and more
  • follows WAI-ARIA design patterns: ARIA and role attributes, focus management, keyboard navigation
  • components uncontrolled by default, controllable when you need it
  • one tree-shakable radix-ui package (since January 2025) or individual @radix-ui/react-* packages
  • React 16.8, 17, 18 and 19 (npm peer dependencies of radix-ui and @radix-ui/themes)
  • Radix Themes: pre-styled components with a Theme provider and one stylesheet
  • Radix Icons and Radix Colors
  • a base library option in shadcn/ui

Alternatives

The same job

These do what Radix UI does.

  1. React Aria Accessible React components and hooks with no styles
  2. Headless UI Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS
  3. Melt UI A set of headless, accessible component builders for Svelte
  4. Ark UI Unstyled, accessible UI components for your design system. Works in React, Vue, Solid, and Svelte.
  5. Base UI Unstyled UI components for building accessible user interfaces
  6. UI SDK A library of behaviors for agents to build the next generation of user interfaces.

Compare Radix UI with the top 3