Back to Agent Skills
Frontend & Design
Radix UI Primitives
Build accessible, unstyled UI components with Radix UI primitives that handle complex interactions and WAI-ARIA patterns.
Claude Code Cursor Copilot Windsurf
Overview
Radix UI provides unstyled, accessible UI primitives for React that handle complex interaction patterns like modals, dropdowns, tooltips, and tabs. AI agents can compose Radix primitives with your own styles to build fully custom, accessible component libraries without reinventing focus management and keyboard navigation.
Each Radix primitive handles the hard parts of UI development: focus trapping in dialogs, typeahead in select menus, proper ARIA attributes, keyboard navigation, screen reader announcements, and portal rendering. Your AI agent can implement these components with complete confidence that accessibility is handled correctly.
Radix is the foundation used by shadcn/ui, and understanding the primitives directly gives you more flexibility. AI agents can help you compose primitives into complex UI patterns like command palettes, multi-select comboboxes, context menus, and nested navigation menus with proper accessibility.
Each Radix primitive handles the hard parts of UI development: focus trapping in dialogs, typeahead in select menus, proper ARIA attributes, keyboard navigation, screen reader announcements, and portal rendering. Your AI agent can implement these components with complete confidence that accessibility is handled correctly.
Radix is the foundation used by shadcn/ui, and understanding the primitives directly gives you more flexibility. AI agents can help you compose primitives into complex UI patterns like command palettes, multi-select comboboxes, context menus, and nested navigation menus with proper accessibility.
Who Is This For?
- Developers building custom design systems that must be fully accessible
- Teams implementing complex interactive patterns like comboboxes and menus
- Engineers who need unstyled primitives to match existing design languages
- Developers building component libraries for organization-wide use
Installation
Setup for Claude Code
npm install @radix-ui/react-dialog @radix-ui/react-dropdown-menu @radix-ui/react-tooltip Configuration
// Dialog example
import * as Dialog from "@radix-ui/react-dialog";
<Dialog.Root>
<Dialog.Trigger>Open</Dialog.Trigger>
<Dialog.Portal>
<Dialog.Overlay className="fixed inset-0 bg-black/50" />
<Dialog.Content className="fixed top-1/2 left-1/2 ...">
<Dialog.Title>Edit Profile</Dialog.Title>
<Dialog.Description>Make changes here.</Dialog.Description>
<Dialog.Close>Close</Dialog.Close>
</Dialog.Content>
</Dialog.Portal>
</Dialog.Root> Explore AI Tools
Discover the best AI tools that complement your skills
Read AI & Design Articles
Tips and trends in the world of design and AI
Related Skills
Frontend & Design
Figma MCP Server
Bridge the gap between design and code by connecting Figma to your AI agent via MCP, enabling accurate design-to-code translation.
Claude Code Cursor
Frontend & Design Storybook Component Docs
Build, document, and visually test UI components in isolation using Storybook. AI agents can generate stories and catch visual regressions.
Claude Code Copilot Cursor
Frontend & Design Tailwind CSS IntelliSense
Get intelligent Tailwind class suggestions, autocompletions, and linting as you style components in your editor.
Copilot Cursor Windsurf