rails-components
Installation
SKILL.md
Rails Component Patterns
Build reusable, self-contained, composable UI components using Rails primitives — partials, CSS classes, and helpers.
Philosophy
Core Principles:
- Start with CSS classes — don't reach for a partial when a class will do
- Self-contained — each component owns its markup AND styles in one place
- Composable — components nest and combine naturally
- Consistent — same component = same markup = same appearance everywhere
- Progressive complexity — graduate from CSS → partial → helper only when needed