radix-ui
/radix-ui
Pomaga budować dostępne, headless komponenty Radix UI: dialogi, menu, popovery, portale i zarządzanie fokusem.
- Autor
- LineLuLan ↗
- Repozytorium
- line-harness ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.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
Pomaga budować dostępne, headless komponenty Radix UI: dialogi, menu, popovery, portale i zarządzanie fokusem.
Oryginalny opis (EN)
Use when building or customizing accessible headless UI primitives with Radix UI, including dialogs, dropdowns, popovers, portals, focus management, and shadcn foundations.
Jak działa
- Overview
- When to Use
- Key Patterns
- Anti-Patterns
- Related Skills
Podgląd SKILL.md
---
name: radix-ui
description: "Use when building or customizing accessible headless UI primitives with Radix UI, including dialogs, dropdowns, popovers, portals, focus management, and shadcn foundations."
verified: 2026-08
---
# Radix UI
- **Layer**: domain
- **Category**: ui-primitives
- **Risk Level**: low
- **Triggers**: radix, primitives, accessible components, headless ui, unstyled components
## Overview
Unstyled, accessible UI primitives for building high-quality design systems. Radix provides the behavior, accessibility, and keyboard interactions — you provide the styling.
## When to Use
- Building a custom design system that needs accessible primitives
- Need complex UI patterns (dialogs, dropdowns, popovers) with proper ARIA and focus management
- Using Tailwind or CSS modules and want full styling control
- Extending shadcn/ui components (which are built on Radix)
## Key Patterns
### Composition Pattern
Every component follows `Root > Trigger > Content` composition. Use `Portal` for overlays to escape DOM stacking contexts.
```tsx
<Dialog.Root>
<Dialog.Trigger asChild><button>Open</button></Dialog.Trigger>
<Dialog.Portal>
<Dialog.Overlay />
<Dialog.Content>
<Dialog.Title>Title</Dialog.Title>
<Dialog.Description>Description</Dialog.Description>
<Dialog.Close asChild><button>Close</button></Dialog.Close>
</Dialog.Content>
</Dialog.Portal>
</Dialog.Root>
```
### Controlled vs Uncontrolled
All components work uncontrolled by default. Use `open`/`onOpenChange` for controlled state.
### Animation with data-state
Style enter/exit animations using `data-[state=open]` and `data-[state=closed]` attributes instead of managing animation state manually.
```css
[data-state="open"] { animation: fadeIn 200ms ease-out; }
[data-state="closed"] { animation: fadeOut 150ms ease-in; }
```
### Accessibility Built-in
ARIA roles, keyboard navigation, and focus management are handled automatically. Do not override `role`, `aria-*`, or `tabIndex` unless you have a specific reason.
### Styling Integration
Use `asChild` to merge Radix behavior onto your own styled element. Use `className` or `style` directly on Radix components when not using `asChild`.
### Context Value Forwarding
Nested Radix components share context automatically. Access internal state via render props or `data-*` attributes for conditional styling.
## Anti-Patterns
- **Wrapping with extra divs**: Use `asChild` instead of nesting styled wrappers around triggers/content
- **Reimplementing accessibility**: Do not add manual `aria-*` or keyboard handlers — Radix handles this
- **Skipping Portal**: Always portal overlays (Dialog, Popover, Tooltip) to avoid z-index and overflow issues
- **Inline open/close logic**: Prefer `onOpenChange` callback over manual `useState` + `onClick` toggling
- **Ignoring `forwardRef`**: Custom components passed via `asChild` must forward refs
## Related Skills
`react` | `shadcn-ui` | `design-systems` | `tailwindcss`
Pliki w paczce (2)
- SKILL.md 3 KB
- agents/openai.yaml 1 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · LineLuLan/line-harness | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| taianh20102011/skill-for-ai | 100 | MIT |
| aehrc/pathling | 100 | MIT |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 277fbc0b85f3 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100ui-components
Dostarcza wzorce bibliotek komponentów UI z shadcn/ui i Radix Primitives: dostępne komponenty, dostosowywanie shadcn, bezstylowe prymitywy Radix i fundamenty systemu projektowego. - 100shadcn-ui-radix-primitives
Składa dostępne, nieostylowane komponenty UI z prymitywów Radix UI i wzorców Tailwind używanych w shadcn/ui. - 100radix-ui-design-system
Dostarcza wzorce Radix UI do budowy dostępnych systemów projektowych z headless components, motywami i architekturą compound components. - 86mobile-headlessui-accessible-overlay
Pomaga budować dostępne menu mobilne, dialogi, popovery, panele disclosure, zarządzanie fokusem, obsługę klawiatury i stan ARIA wzorowane na Headless UI. - 100migrate-radix-to-base
Migruje projekty i komponenty React z Radix UI do Base UI, pojedyncze komponenty lub cały projekt, także projekty shadcn. - 85radix-ui-optimizer
Sprawdza i optymalizuje użycie Radix UI w bazie kodu: importy, wydajność, dostępność i dryf wersji, z pomiarami przed i po zmianie.