Image
An optimized image component that handles File objects, remote URLs, blob URL lifecycle management, and progressive loading with thumbhash placeholders. Ideal for displaying images from useImagePicker or any remote source.
Anchor to propsProps
- Anchor to altaltaltstringstring
Alt text for accessibility
- Anchor to aspectRatioaspectRatioaspectRationumber | stringnumber | string
Aspect ratio (e.g., 16/9, "4/3", or "auto")
- Anchor to filefilefileFileFile
File object from useImagePicker (auto-manages blob URL lifecycle)
- Anchor to objectFitobjectFitobjectFit'cover' | 'contain' | 'fill' | 'scale-down' | 'none''cover' | 'contain' | 'fill' | 'scale-down' | 'none'
How the image should fit within its container
- Anchor to onLoadonLoadonLoad() => void() => void
Callback when image finishes loading
- Anchor to srcsrcsrcstringstring
Remote image URL
- Anchor to thumbhashthumbhashthumbhashstring | nullstring | null
Thumbhash string for progressive loading placeholder
Was this page helpful?