Core Components
MotionIcon
The main component for rendering animated Lucide icons
Props Reference
Complete list of all available props and their types
Type Definitions
Motion Icons React is built with TypeScript and provides comprehensive type definitions.Animation Types
Component Props
Usage Patterns
Basic Usage
Type Safety
The library provides full type safety for all props:Generic Component Pattern
Create reusable components with proper typing:Error Handling
The library includes built-in error handling for common issues:Invalid Icon Names
Animation Conflicts
Performance Considerations
Bundle Size
Motion Icons React is optimized for minimal bundle impact:- Tree-shaking support for unused animations
- Lazy loading of animation definitions
- Efficient CSS-in-JS implementation
Runtime Performance
- Hardware-accelerated animations using CSS transforms
- Minimal JavaScript execution during animations
- Automatic cleanup of animation resources