Components

Image component

Image integrates browser image selection with Next.js optimization when supported by the deployment. Supply meaningful alt text for informative images, or empty alt for decoration. For string sources supply width and height unless using fill. Use measured loading priorities; priority is deprecated in Next.js 16. Source: https://nextjs.org/docs/app/api-reference/components/image. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
import Image from "next/image"

Working Example

Example Snippetnextjs
import Image from 'next/image';export default function Cover(){return <Image src='/covers/moss.png' width={240} height={360} alt='Moss book cover'/>;}
Next.js Reference