Radix Primitives Open-source, unstyled React interaction components for building custom accessible interface systems.
Overview Radix Primitives is a low-level React component library for reusable interface behavior such as dialogs, menus and tooltips. It supplies interaction and accessibility mechanisms while leaving visual styling to the application. This makes it useful when a custom or AI-assisted interface needs established behavior beneath its appearance, rather than a finished visual theme.[1] [3]
Contents Incremental adoption and package structure Developers can adopt selected primitives within an existing React application rather than replace its entire interface at once. The documentation recommends the combined radix-ui package to simplify dependency coordination, while still allowing individual primitive packages. It recommends updating individually installed Radix packages together to avoid duplicated shared dependencies. The common typed API provides a reusable contract, but each component still needs to be integrated with the application's state and content.[1]
What a dialog primitive contributes The Dialog component illustrates the division of responsibilities. It supports controlled or uncontrolled state, modal and non-modal operation, keyboard dismissal and focus trapping in modal mode. Title and Description parts provide context for assistive technology, while the application supplies the actual content and actions. A documented controlled-state example closes a dialog after an asynchronous operation. The example establishes a UI coordination pattern, not the application's persistence or authorization behavior.[7]
Functional styling remains application work Unstyled does not mean that only colors are missing. The styling guide notes that a Dialog overlay does not cover the viewport by default: its geometry is part of the developer's CSS work. Component parts accept class names, and stateful controls expose data-state attributes for styling. A generated interface can therefore look plausible while still needing layout and state-style review. Radix Themes is a separate prestyled package with its own CSS import and Theme wrapper; its defaults should not be attributed to Primitives.[3] [8]
Preserving behavior through custom wrappers The asChild mechanism applies a primitive's behavior to another element or a custom React component. The wrapped component must pass through the supplied props and support the ref that Radix needs. Changing the underlying element also changes its native semantics: a focusable trigger must remain keyboard-operable. These are important constraints when a coding assistant refactors reusable buttons or links, because a wrapper that discards handlers or refs can break otherwise working interaction behavior.[4]
Accessibility and server rendering limits Radix documents support for WAI-ARIA interaction patterns, but the application author still provides meaningful labels. Library adoption is consequently not a complete accessibility audit of the resulting product. Server and static rendering are supported; the SSR guide additionally warns that React versions below 18 rely on hydration for generated IDs, affecting when assistive-technology relationships become available. That is a documented legacy-version caveat, not a claim that every current framework integration has been tested here.[5] [6]
License and substitution Radix Primitives uses the MIT license, with notice-preservation obligations. It can replace overlapping interaction controls from Mantine when the goal is to build a custom React design system. The exchange gives the developer more direct responsibility for appearance and composition; it does not preserve Mantine imports or provide all of its higher-level packages. The useful comparison is behavior for selected controls, not equivalence between complete application stacks. No installation or hands-on accessibility test was performed.[1] [2] [3] [9]
Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.