vercel-composition-patterns
CommunityScale React UIs with robust composition patterns.
Authormemorysaver
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps software teams design scalable React codebases by avoiding boolean prop proliferation through composition patterns, compound components, and context.
Core Features & Use Cases
- Explicit variant components: ThreadComposer, EditMessageComposer, and ForwardMessageComposer reuse shared UI primitives to replace boolean prop gates.
- Compound components with context: A central ComposerContext enables pieces like Frame, Input, and Submit to be composed without prop drilling.
- State sharing via providers: Lift state to providers so unrelated UI pieces can access and mutate shared state without tight coupling.
Quick Start
- Create explicit variant components (ThreadComposer, EditMessageComposer, ForwardMessageComposer) using the shared Composer primitives, and wire them under a common provider. Then compose simple UIs by including Frame, Input, and Submit from the Composer family.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: vercel-composition-patterns Download link: https://github.com/memorysaver/agentpit-gg/archive/main.zip#vercel-composition-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.