What problem does it solve?
This Skill solves the common issue of incomplete UI development where interactive elements lack necessary states, leading to broken user experiences, accessibility failures, and inconsistent feedback.
Core Features & Use Cases
- State Matrix Generation: Maps every interactive element to its required lifecycle states including hover, focus, active, disabled, loading, and error.
- Accessibility Compliance: Ensures all visual states are paired with correct ARIA attributes and meet contrast requirements for WCAG compliance.
- Use Case: When building a new design system component like a custom toggle or async button, use this Skill to define the exact interaction contract, preventing duplicate submissions and ensuring keyboard users are never lost.
Quick Start
Use the component-states skill to generate a full interaction matrix and accessibility contract for the primary submit button component.