Image

The <Image> component handles optimization, responsive srcset, and lazy loading.

Hero
<Image
  src="/hero.jpg"
  width={1200}
  height={600}
  alt="Hero"
  placeholder="blur"
  blurDataURL="data:image/png;base64,..."
  priority
/>

Remote sources

Add the domain to swift-rust.config.json:

{
  "image": { "domains": ["cdn.example.com"] }
}