Image
COMPONENT

CONTENT / IMAGE

Image

Display bundled offline package images (assets/), public HTTPS images, or base64 data with Retina sharpness, aspect fill/fit scaling, and optional scrim overlays.

Signature#

SIGNATURE
<Image
  asset="cover.png"
  width={64}
  height={64}
  cornerRadius={12}
  scaleMode="fill"
  clip={true}
/>
64 × 64 · r12 · fill
Sample cover.png rendered at 64 by 64 with 12pt corner radius
64 × 64 · r12

Props#

Inherits StyleProps:

assetstringOptional
Relative path to a bundled PNG/JPG/WebP/SVG inside assets/ (e.g. "cover.png").
srcstringOptional
Public https:// image URL (automatically cached in memory by the host).
base64stringOptional
Inline base64-encoded image bytes.
scaleModestringDefault "fill"
Scaling mode: "fill" crops to cover (combine with clip={true}); "fit" keeps the entire image visible.
tintOverlaystringOptional
Semi-transparent scrim overlay (e.g. "#00000033") to boost legibility for text drawn over photos.

Example: Fill, Fit & Tint Overlay#

TSX
<HStack spacing={12}>
  <Image asset="cover.png"
    width={64} height={64} cornerRadius={12}
    scaleMode="fill" clip={true} />
  <Image asset="cover.png"
    width={64} height={64} cornerRadius={12}
    scaleMode="fit" clip={true} />
  <Image asset="cover.png"
    width={64} height={64} cornerRadius={12}
    tintOverlay="#00000044" clip={true} />
</HStack>
fill · fit · tintOverlay
Image with scaleMode fill
fill
Image with scaleMode fit
fit
Image with tintOverlayAa
tintOverlay