An enhanced image component that provides error handling, loading states, and fallback functionality. Built on top of the native HTML img element with additional features for better user experience.
onError
: Function - Custom error handler for image loading failuresref
: React.Ref - React ref for accessing the image elementImage Loading:
Error Handling:
Accessibility:
The component supports all standard image styling including:
The component handles various error scenarios: