Interactive testing environment for react-shared components
Current: Default
Optimized image preview component with automatic format conversion and lazy loading
Customize the image properties and see the changes in real-time
✅ Loaded

Different image optimization scenarios




sourcestring - Image URL to display (required)
altstring - Alt text for accessibility (default: '')
classNamestring - CSS classes to apply
styleReact.CSSProperties - Inline styles
formatstring - Output format: 'webp', 'jpeg', 'png' (default: 'webp')
qualitynumber - Image quality 1-100 (default: 100)
widthnumber - Target width in pixels, -1 for auto (default: -1)
heightnumber - Target height in pixels, -1 for auto (default: -1)
retrynumber - Number of retry attempts, -1 for no retry (default: -1)
onLoad() => void - Callback when image loads successfully
onIsLoading(isLoading: boolean) => void - Callback when loading state changes
Image Optimization: The component automatically optimizes images from the configured assets domain using the specified format, quality, and dimensions.
Loading States: Use the onIsLoading callback to track loading state and show custom loading indicators.
Retry Logic: Set the retry prop to enable automatic retry for images that are still processing.
Fallback: If optimization fails, the component automatically falls back to the original image source.