shadcn-errors-radix-controlled
OfficialFix Radix controlled-state bugs in shadcn.
Software Engineering#debugging#shadcn#focus management#radix#controlled state#asChild slot#portal stacking
AuthorImpertio-Studio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents Radix-wrapped shadcn primitives from getting stuck, crashing, mis-stacking, or losing focus by diagnosing the most common controlled-state and Slot/Portal contract violations.
Core Features & Use Cases
- Open/Value Contract Debugging: Detects and corrects half-controlled states such as
openwithoutonOpenChangeandvaluewithoutonValueChange, which makes primitives effectively read-only. - Slot
asChildSafety Checks: Prevents the React Slot runtime crash and silent a11y/focus failures by enforcing the “exactly one child” and “must forward refs” rules. - Portal +
containerFixes: Resolves stacking-context and placement issues caused by transformed/filtered ancestors by scoping the Portal with thecontainerprop. - Modal Semantics & Focus Management: Applies correct
modalbehavior (focus trap/scroll lock vs non-modal dismissal) to fix popovers/dialog-like components that close on form submit or swallow Escape. - Close-On-Success Workflow: Ensures controlled open state is updated only after mutations succeed so loading UI and error handling work reliably.
Quick Start
Ask the AI to diagnose why your shadcn Dialog/Popover/Select doesn’t close, then request the exact fix using the open/value pairing and the correct event/prop patterns.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: shadcn-errors-radix-controlled Download link: https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package/archive/main.zip#shadcn-errors-radix-controlled Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.