What problem does it solve?
Enforces consistent Storybook story patterns and documentation across a codebase to prevent fragmented examples, missing docs, improper imports, and styling inconsistencies that make component libraries hard to maintain and review.
Core Features & Use Cases
- Import and Composition Rules: Require using base components from @compozy/ui and composing rather than recreating UI elements.
- Meta and Story Conventions: Enforce explicit Meta typing, centered layout, docs descriptions, decorators when needed, and mandatory args: {} for every story.
- Design System & Accessibility: Mandate design token usage, follow shadcn/react rules, and prefer render functions for compound components to preserve accessibility and composition.
- Use Cases: Add stories for new components, refactor existing stories to match project standards, and fix Storybook-related regressions or accessibility issues.
Quick Start
Add a centered Storybook story for MyComponent that imports base components from @compozy/ui, uses design tokens, includes an explicit Meta type, and has args: {}.