Migration Guide
When to Migrate
1. Technical Improvement
2. Updating a Component
3. Project Needs
Migration Process
Step 1: Planning
Step 2: Create UI2 Component
Step 3: Maintain Compatibility
Same Props
Backward Compatible Changes
Step 4: Deprecate UI1 Component
Step 5: Gradual Adoption
Migration Examples
Example 1: Simple Component
UI1 Version
UI2 Version
Example 2: Component with Variants
UI1 Version
UI2 Version
Migration Checklist
Planning Phase
Implementation Phase
Deprecation Phase
Adoption Phase
Common Migration Patterns
CSS to Styled Components
Class Names to Props
Fixed Values to Theme
Breaking Changes
When Breaking Changes Are Acceptable
How to Handle Breaking Changes
Example: Removing Deprecated Props
Testing Migration
Visual Regression Testing
Behavioral Testing
Documentation Updates
Update UI1 Component Docs
Create UI2 Component Docs
Next Steps
Last updated