What problem does it solve?
This Skill automates the creation of detailed Storybook stories, ensuring all states, variants, and interaction tests are covered, thereby improving component quality and documentation.
Core Features & Use Cases
- Comprehensive State Coverage: Generates stories for default, variants, interactive states (hover, focus, active, disabled), loading, error, and empty states.
- Interaction Testing: Integrates
@storybook/test for behavioral validation via play functions.
- Accessibility Audits: Includes a dedicated story to assert zero accessibility violations.
- Responsive Design Testing: Creates stories for mobile, tablet, and desktop viewports.
- Edge Case Handling: Addresses long text, empty content, RTL layouts, and overflow scenarios.
- Keyboard Navigation: Tests tab order, focus traps, and focus restoration.
Quick Start
Use the story-author skill to generate a <ComponentName>.stories.tsx file based on the provided component files and documentation.