Skip to content

Component Management ​

These Accepted rules define when a frontend component is a useful boundary. The decisions apply across frontend frameworks; the examples and file names use Vue to make them concrete.

Rules ​

RuleComponent responsibilityStatus
Deciding when to create a componentMeaningful visual, interaction, or business responsibilityAccepted
Structuring business componentsBusiness component interfaces and ownership boundariesAccepted
Separating services, state, and testsBusiness/data operations, UI state, service focus, and independent testingAccepted
Creating UI components with a design systemReusable visual components; references shadcn/ui and shadcn-vue for VueAccepted

Core Principle ​

Create a component only around a meaningful visual, interaction, or business responsibility with a clear interface. Business components own cohesive user- facing capabilities; services own framework-independent operations; the framework's component model owns rendering and local interaction state. Vue is used in examples, not required by the decision.

These rules complement the Vue application structure. Detailed rules for state management, service boundaries, routing, and testing belong in their respective rule sets.

You own what ships.