# Radix Primitives

Open\-source, unstyled React interaction components for building custom accessible interface systems\.

ID: Q605 · Revision: 653

Type: software · License: MIT[^license] · Status: active

Website: https://www.radix-ui.com/primitives



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\.[^intro][^styling]

## 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\.[^intro]

## 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\.[^dialog]

## 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\.[^styling][^themes]

## 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\.[^composition]

## 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\.[^a11y][^ssr]

## License and substitution

Radix Primitives uses the MIT license, with notice\-preservation obligations\. It can replace overlapping interaction controls from [Mantine](/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\.[^license][^intro][^styling][^mantine]

## Capabilities and substitutions

### Accessible interaction foundations — supported

Provides role/ARIA, focus and keyboard behavior following documented patterns; application authors still supply contextual labels\.[^a11y]

Use case: Custom React interaction controls and design systems · Platforms: React web applications · Region: Version, build and integration requirements apply

### Finished visual styling — unsupported

Primitives are unstyled, including functional layout such as full\-viewport dialog overlays\.[^styling]

Use case: Custom React interaction controls and design systems · Platforms: React web applications · Region: Version, build and integration requirements apply

### Custom\-component composition — limited

asChild requires compatible element semantics, forwarded props and refs; wrappers can break behavior when these contracts are lost\.[^composition]

Use case: Custom React interaction controls and design systems · Platforms: React web applications · Region: Version, build and integration requirements apply

### Server rendering — supported

SSR and static rendering are documented; older React versions have a hydration\-dependent ID caveat\.[^ssr]

Use case: Custom React interaction controls and design systems · Platforms: React web applications · Region: Version, build and integration requirements apply

### [Substitute for Mantine](/mantine) — limited

Can replace the interaction layer for overlapping React controls when a bespoke design system is desired\. Requires the developer to provide styles and component composition rather than preserve Mantine's packaged API\.[^intro][^styling][^mantine]

Use case: Custom React interaction controls and design systems · Platforms: React web applications · Region: Version, build and integration requirements apply

## References

[^intro]: [Radix Primitives introduction](<https://www.radix-ui.com/primitives/docs/overview/introduction>) — Low\-level scope, typed APIs and package adoption (vendor; retrieved 2026-10-07T22:34:17Z)

[^license]: [Radix Primitives source license](<https://github.com/radix-ui/primitives/blob/main/LICENSE>) — MIT license and notice requirements (vendor; retrieved 2026-10-07T22:31:44Z)

[^styling]: [Radix Primitives styling](<https://www.radix-ui.com/primitives/docs/guides/styling>) — Unstyled components, functional styles and data\-state (vendor; retrieved 2026-10-07T22:34:09Z)

[^composition]: [Radix composition](<https://www.radix-ui.com/primitives/docs/guides/composition>) — asChild, element semantics, props and refs (vendor; retrieved 2026-10-07T22:32:00Z)

[^a11y]: [Radix accessibility](<https://www.radix-ui.com/primitives/docs/overview/accessibility>) — WAI\-ARIA patterns, keyboard/focus behavior and author\-supplied labels (vendor; retrieved 2026-10-07T22:32:00Z)

[^ssr]: [Radix server\-side rendering](<https://www.radix-ui.com/primitives/docs/guides/server-side-rendering>) — SSR/static rendering and pre\-React\-18 hydration\-ID caveat (vendor; retrieved 2026-10-07T22:34:09Z)

[^dialog]: [Radix Dialog](<https://www.radix-ui.com/primitives/docs/components/dialog>) — Modal behavior, controlled state, title, description and async submission (vendor; retrieved 2026-10-07T22:34:09Z)

[^themes]: [Radix Themes getting started](<https://www.radix-ui.com/themes/docs/overview/getting-started>) — Separate prestyled package, stylesheet and Theme wrapper (vendor; retrieved 2026-10-07T22:34:17Z)

[^mantine]: [Mantine Styles API](<https://mantine.dev/styles/styles-api/>) — Packaged styled components and customization through selectors (vendor; retrieved 2026-10-07T22:32:10Z)

Source revision: https://substitutefor.net/entities/Q605?revision=653
