What problem does it solve?
Creating and maintaining complex Zag.js-based compound UI components (Root, Item, Trigger, Content, and related subcomponents) across a React UI library can lead to inconsistent APIs, accessibility gaps, and scattered implementation patterns. This Skill provides a cohesive approach to coordinate machine-assisted patterns, props mapping, and data attributes for predictable, accessible, and scalable component slices.
Core Features & Use Cases
- Compound patterns: enforce Root/Item/Content/Trigger/Indicator-style APIs aligned with Chakra UI-like anatomy.
- Prop orchestration: leverage Zag's machine/connect APIs and normalizeProps for consistent ARIA and keyboard behavior.
- Documentation guidance: reference component-authoring and tailwind-token-authoring practices to ensure design-token consistency.
- Use Case: teams building a design system can rapidly compose interactive UI primitives with predictable state.
Quick Start
Import the Zag compound primitives into your React project and compose them with your UI kit.