Overview
The layermetry SDK provides two main components for building powerful editing experiences in your React/Next.js applications:ImageEditor
Create stunning images with filters, effects, text, and shapes
VideoEditor
Edit videos with timeline, effects, text overlays, and export
Common Concepts
License Validation
Both components require a valid license key for operation:- License expiration date
- Revocation status
- Active status
- Domain allowlist
https://api.kloudleads.com/license/validate
Custom API Example:
Dynamic Imports (Critical)
Both editors use browser-only APIs and must be imported dynamically withssr: false:
Theme Customization
Both editors support extensive theming via thetheme prop:
Callbacks
Both editors provide callbacks for key events:Export Callback
Called when user exports their work:Close Callback
Called when user closes the editor:Template System
Both editors support saving and loading templates:Brand Presets
Both editors support brand presets for consistent styling:Headless Mode
Run editors programmatically without UI:Type Definitions
EditorItem
Core data structure for all canvas elements:Next Steps
ImageEditor API
Complete ImageEditor props and methods
VideoEditor API
Complete VideoEditor props and methods

