What problem does it solve?
Generate accurate Storybook stories for UI components without relying on approximations, so developers can preview states confidently and catch integration issues early.
Core Features & Use Cases
- Real component rendering: Imports and renders the actual component to match production behavior.
- Real CSS integration: Uses the project’s existing CSS classes instead of inline-style mimics.
- Realistic props and mocked data: Mocks data sources (e.g., Go backend calls) while preserving real rendering.
- Hook and provider correctness: Traces all hook dependencies to select the correct Storybook decorators/providers.
- Comprehensive state coverage: Creates stories for default, loading, error, empty, and other meaningful prop variations.
- Placement and verification discipline: Places stories next to the component and validates compilation with TypeScript checks.
Quick Start
Use /new-story frontend/src/ui/modals/MyModal.tsx to generate a .stories.tsx file that renders MyModal using the project’s real decorators, mocks, and CSS classes.