radix-ui
/radix-ui
Dostarcza dostępne prymitywy UI dla React i Next.js: dialogi, menu, popovery i zakładki, zgodne z WAI-ARIA.
- Autor
- taianh20102011 ↗
- Repozytorium
- skill-for-ai ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Dostarcza dostępne prymitywy UI dla React i Next.js: dialogi, menu, popovery i zakładki, zgodne z WAI-ARIA.
Oryginalny opis (EN)
Headless, accessible UI component primitives for React and Next.js (Dialog, DropdownMenu, Popover, Tooltip, Select, Tabs, Accordion, Slider, NavigationMenu). Use when building robust, accessible design systems, modal dialogs, accessible forms, keyboard-navigable interfaces, and headless UI structures conforming to WAI-ARIA standards. Enforces Alabaster Porcelain styling (strict 6px radius, CNC 1px border, #FFFFFF card, #0F172A text).
Jak działa
- 1. Core Primitives & Packages
- 2. Installation
- 3. Strict Alabaster Porcelain Styling Guidelines
- 4. Production Recipe: Accessible Dialog in Alabaster Porcelain
Podgląd SKILL.md
---
name: radix-ui
description: Headless, accessible UI component primitives for React and Next.js (Dialog, DropdownMenu, Popover, Tooltip, Select, Tabs, Accordion, Slider, NavigationMenu). Use when building robust, accessible design systems, modal dialogs, accessible forms, keyboard-navigable interfaces, and headless UI structures conforming to WAI-ARIA standards. Enforces Alabaster Porcelain styling (strict 6px radius, CNC 1px border, #FFFFFF card, #0F172A text).
---
# Radix UI (Accessible Headless Primitives)
[Radix UI](https://www.radix-ui.com) is the gold standard for unstyled, accessible UI component primitives in React, serving as the foundation of shadcn/ui.
## 1. Core Primitives & Packages
| Primitive | Package | Key Capabilities |
| :--- | :--- | :--- |
| **Dialog / Modal** | `@radix-ui/react-dialog` | Focus trapping, screen reader announcement, backdrop click, Escape key close. |
| **Dropdown Menu** | `@radix-ui/react-dropdown-menu` | Nested submenus, radio/checkbox items, full keyboard arrow navigation. |
| **Popover** | `@radix-ui/react-popover` | Anchored floating panels with collision detection and smart placement. |
| **Tooltip** | `@radix-ui/react-tooltip` | Hover/focus delayed micro-tips with configurable skip-delay. |
| **Select** | `@radix-ui/react-select` | Custom accessible select matching native select behavior, type-ahead search. |
| **Tabs** | `@radix-ui/react-tabs` | Accessible tabbed views with automatic/manual keyboard activation. |
| **Accordion** | `@radix-ui/react-accordion` | Single or multi-expand collapsible sections with smooth height transitions. |
| **Slider** | `@radix-ui/react-slider` | Single or range sliders with keyboard step navigation. |
| **Scroll Area** | `@radix-ui/react-scroll-area` | Cross-browser custom scrollbars with native scrolling performance. |
---
## 2. Installation
Install primitives individually or with shadcn/ui:
```bash
# Direct install:
npm install @radix-ui/react-dialog @radix-ui/react-dropdown-menu @radix-ui/react-popover
# Or with shadcn (installs Radix underneath):
npx shadcn@latest add dialog dropdown-menu popover tooltip select tabs
```
---
## 3. Strict Alabaster Porcelain Styling Guidelines
All Radix primitives MUST be styled with the project's visual invariants:
* **Border Radius**: Strictly **`rounded-[6px]`** (`6px`). Never use `rounded-xl` or `rounded-2xl`.
* **Surface**: `#FFFFFF` card background, `#F7F8FA` page canvas.
* **Borders & Shadows**:
```tsx
className="bg-white rounded-[6px] border border-[#E2E8F0] shadow-[0_4px_20px_-2px_rgba(15,23,42,0.05),0_1px_2px_0_rgba(15,23,42,0.04)]"
```
* **Typography & Ink**: `Plus Jakarta Sans` for labels, primary text `#0F172A`, muted `#64748B`.
* **Prohibitions**: ❌ No glassmorphism (`backdrop-blur`), ❌ No gradients, ❌ No nested cards.
---
## 4. Production Recipe: Accessible Dialog in Alabaster Porcelain
```tsx
import * as Dialog from "@radix-ui/react-dialog";
import { X } from "lucide-react";
export function PorcelainDialog({ trigger, title, description, children }: {
trigger: React.ReactNode;
title: string;
description?: string;
children: React.ReactNode;
}) {
return (
<Dialog.Root>
<Dialog.Trigger asChild>{trigger}</Dialog.Trigger>
<Dialog.Portal>
<Dialog.Overlay className="fixed inset-0 bg-[#0F172A]/30 backdrop-fade-in z-50 transition-opacity" />
<Dialog.Content className="fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-lg bg-white rounded-[6px] border border-[#E2E8F0] shadow-[0_10px_25px_-5px_rgba(15,23,42,0.1),0_8px_10px_-6px_rgba(15,23,42,0.05)] p-6 z-50 focus:outline-none">
<div className="flex items-center justify-between pb-3 border-b border-[#F1F5F9]">
<Dialog.Title className="text-base font-bold text-[#0F172A] font-['Plus_Jakarta_Sans',sans-serif]">
{title}
</Dialog.Title>
<Dialog.Close asChild>
<button aria-label="Close" className="text-[#64748B] hover:text-[#0F172A] p-1 rounded-[6px] transition-colors">
<X className="w-4 h-4" />
</button>
</Dialog.Close>
</div>
{description && (
<Dialog.Description className="text-xs text-[#64748B] mt-2">
{description}
</Dialog.Description>
)}
<div className="mt-4">{children}</div>
</Dialog.Content>
</Dialog.Portal>
</Dialog.Root>
);
}
```
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · taianh20102011/skill-for-ai | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| LineLuLan/line-harness | 100 | MIT |
| aehrc/pathling | 100 | MIT |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki f064150ca9db (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100building-components
Prowadzi przepływ pracy budowy, przebudowy i restylizacji komponentów systemu projektowego, takich jak Button, Dialog, Select, Table, Tabs i Tooltip, na pełnym prymitywie headless Radix, React Aria lub Base UI. - 100accessible-widgets
Buduje i naprawia dostępne dla klawiatury i czytników komponenty React: okna modalne, combobox, zakładki i akordeony wg APG. - 100radix-ui-design-system
Dostarcza wzorce Radix UI do budowy dostępnych systemów projektowych z headless components, motywami i architekturą compound components. - 100accessible-modal-dialogs-popovers-accordions
Buduje dostępne okna dialogowe, popovery, akordeony i karty z poprawnym przywracaniem fokusu i stanami ARIA. - 91base-ui-react
Konfiguruje Base UI (@base-ui-components/react), niestylowaną bibliotekę komponentów React z API render prop: instalacja, wzorce komponentów, migracja z Radix UI, Tailwind v4 i wdrożenie na Cloudflare Workers. - 100aceternity-ui
Dostosowuje gotowe animowane komponenty React i Tailwind, takie jak hero, karty 3D i tła, do ustalonego stylu marki.