What problem does it solve?
This Skill provides structured patterns for documenting UI components and validating their behavior through visual and interaction testing using Storybook 7+.
Core Features & Use Cases
- Story basics: establish component stories to drive autodocs and maintain a consistent design system.
- Args & Controls: configure component props and interactive controls for exploration and QA.
- Decorators & Theming: apply wrappers for layout, context, and visual consistency.
- Play Functions & Interaction Testing: embed automated interactions within stories to verify behavior.
- Visual Testing & MDX Documentation: enable snapshot-like visual checks and MDX-based docs to align developers and designers.
- Use Cases: support a design-system workflow, accelerate QA across components, and improve component discoverability.
Quick Start
Install Storybook in your project: npm i -D @storybook/react and npx sb init. Create a basic Button.stories.tsx file with a default export and a Primary story, then run Storybook locally to view component docs and interactions.