Skip to main content

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.

string

Alt text for accessibility

Anchor to aspectRatio
aspectRatio
number | string

Aspect ratio (e.g., 16/9, "4/3", or "auto")

File

File object from useImagePicker (auto-manages blob URL lifecycle)

Anchor to objectFit
objectFit
'cover' | 'contain' | 'fill' | 'scale-down' | 'none'

How the image should fit within its container

Anchor to onLoad
onLoad
() => void

Callback when image finishes loading

string

Remote image URL

Anchor to thumbhash
thumbhash
string | null

Thumbhash string for progressive loading placeholder


Was this page helpful?