Overview
Image component displays images with optional preview mode, zoom, rotate, and download functionality.Import
Basic Usage
With Preview Mode
Object Fit Options
Lazy Loading
With Event Handlers
Input Properties
Source URL of the image
Alternative text for the image
Width of the image
Height of the image
How the image should fit its container
Image loading strategy
Enable preview mode with zoom and controls
Output Events
Callback when image loads successfully
Callback when image fails to load
Preview Mode Controls
When preview mode is enabled, the following controls are available:- Zoom In: Increase image scale
- Zoom Out: Decrease image scale
- Rotate Left: Rotate counter-clockwise
- Rotate Right: Rotate clockwise
- Download: Download the image
- Close: Close preview mode
Features
- Preview mode: Full-screen preview with controls
- Zoom: In/out functionality
- Rotate: Left/right rotation
- Download: Download image to device
- Lazy loading: Optimize performance
- Object fit: Multiple fit options
- Error handling: Handle load failures
- Keyboard support: Escape to close preview
Preview Mode Example
Accessibility
- Alt text for screen readers
- Keyboard navigation in preview mode
- Focus management
- ARIA labels on controls
