Interactive Demos
Explore all the features of the <image-editor> component
Default Editor
Empty editor with drag-and-drop zone. Drop an image or click Open to get started.
Dark Mode
Use mode="dark" to pin the editor to dark theme regardless of page settings.
JPEG Export at 80% Quality
Set the default export format and quality with the format and quality attributes.
Read-only Mode
The readonly attribute disables all editing tools. Useful for displaying images with zoom/pan only.
No Toolbar (API-driven)
Hide the toolbar with no-toolbar and drive the editor entirely through JavaScript.
Locked Aspect Ratio
Lock the crop tool to a specific ratio with the aspect-ratio attribute. Common values: 16:9, 4:3, 1:1.
Constrained Size
Set explicit width and height to constrain the editor dimensions.
Custom Drop Zone
Use slotted content to customize the drop zone message shown before an image is loaded.
Drop your photo here to start editing
Custom Theming
Use CSS custom properties to create custom themes. Over 35 properties are available.
All Editing Features
- Crop with draggable handles and aspect ratio presets
- Rotate 90° left/right
- Flip horizontal and vertical
- Resize to exact dimensions with aspect lock
- Brightness, contrast, saturation, blur, grayscale, sepia filters
- Undo/redo with configurable history depth
- Zoom and pan with scroll and drag
- Export as PNG, JPEG, or WebP
- Drag-and-drop or file picker image input
- Light/dark mode with auto-detection
- Full keyboard accessibility
- 35+ CSS custom properties for theming
Programmatic Filters
Apply filters via JavaScript for batch processing or custom UI workflows.
Undo/Redo History
Every edit is tracked. Control the maximum history depth with the max-history attribute.
Zoom & Pan Controls
Control zoom programmatically. Scroll to zoom, drag to pan in the editor.