{"schemaVersion":1,"id":"radix-ui","name":"Radix UI Primitives","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/radix-ui/","officialUrl":"https://www.radix-ui.com/primitives","isCatalog":false,"description":"Unstyled React primitives with focus, keyboard, and ARIA management for your own design system.","tasks":["Accessible dialogs and dropdown menus","Custom visual component systems"],"categoryIds":["frontend"],"subcategoryIds":["frontend.components"],"tags":["React","TypeScript","components"],"aliases":["radix-ui/primitives"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Radix UI Primitives code is available free of charge for local and commercial projects, subject to its license.","paidUsage":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","license":"MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.","selectionGuide":{"purpose":"Accessible dialogs and dropdown menus","chooseWhen":["Accessible dialogs and dropdown menus","Custom visual component systems"],"considerInstead":["When choosing for this topic, compare Radix UI Primitives with Ark UI. A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.","When choosing for this topic, compare Radix UI Primitives with Headless UI. A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."],"requirements":["For a custom component under asChild, pass received props to the DOM element and support ref."],"limitations":["Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.","Replacing a button with a non-focusable div can remove keyboard access to the trigger; accessibility of your custom element remains your responsibility."],"faq":[{"question":"What can you use for free in Radix UI Primitives?","answer":"Radix UI Primitives code is available free of charge for local and commercial projects, subject to its license."},{"question":"What additional costs might arise with Radix UI Primitives?","answer":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license."},{"question":"What terms of use matter for Radix UI Primitives?","answer":"MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained."},{"question":"How do you get started with Radix UI Primitives?","answer":"Check the project's stack and version against the current Radix UI Primitives documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license."},{"question":"Why does my custom button not work as a Radix trigger with asChild?","answer":"Radix clones the child element and adds props and handlers. The documentation requires the leaf component to spread props onto the DOM node and forward ref. If the component consumes this data or changes the element's semantics, behavior and accessibility can break."}],"related":[{"id":"ark-ui","reason":"A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"headless-ui","reason":"A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"react-aria","reason":"A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."}],"sources":["https://www.radix-ui.com/primitives","https://github.com/radix-ui/primitives","https://github.com/radix-ui/primitives/blob/main/README.md","https://github.com/radix-ui/primitives/blob/main/LICENSE","https://raw.githubusercontent.com/radix-ui/primitives/HEAD/README.md","https://raw.githubusercontent.com/radix-ui/primitives/HEAD/LICENSE","https://www.open-source-tools.com/","https://www.radix-ui.com/primitives/docs/guides/composition"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Accessible dialogs and dropdown menus with Radix UI Primitives.","inputs":["A working React; TypeScript project and a specific use case: an accessible dialog and dropdown menu.","A design, interface states, or dataset; target screens and accessibility requirements."],"steps":["Check the project's stack and version against the current Radix UI Primitives documentation; add the package or the required source component.","Implement the selected workflow with the supplied data, adapting styles and states to the project.","Check the result in the target environment, remove sample data, and retain the notices required by the license."],"checks":["The example works in the chosen tech stack, including target dimensions and input errors.","Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met."]},"sources":["https://www.radix-ui.com/primitives","https://github.com/radix-ui/primitives","https://github.com/radix-ui/primitives/blob/main/README.md","https://github.com/radix-ui/primitives/blob/main/LICENSE","https://raw.githubusercontent.com/radix-ui/primitives/HEAD/README.md","https://raw.githubusercontent.com/radix-ui/primitives/HEAD/LICENSE","https://www.open-source-tools.com/","https://www.radix-ui.com/primitives/docs/guides/composition"],"checkedAt":"2026-10-06","reviewScope":"Purpose, published primary source code/documentation, and license terms were reviewed. An example was not run in a local project.","relatedIds":["shadcn-ui","headless-ui","storybook","react-aria","ark-ui"],"dataVersion":"cbbe7123b47a5ae80983","type":"UI library","kind":"library","pricingNote":"Radix UI Primitives code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","notes":null,"labeledSources":[{"url":"https://www.radix-ui.com/primitives","label":"Official website"},{"url":"https://github.com/radix-ui/primitives","label":"Official source"},{"url":"https://github.com/radix-ui/primitives/blob/main/README.md","label":"Documentation and use"},{"url":"https://github.com/radix-ui/primitives/blob/main/LICENSE","label":"License"},{"url":"https://raw.githubusercontent.com/radix-ui/primitives/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/radix-ui/primitives/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://www.radix-ui.com/primitives/docs/guides/composition","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}