Components
Image sizes
Describes expected display widths by media condition, enabling candidate selection. Does not set CSS dimensions. Source: https://nextjs.org/docs/app/api-reference/components/image. Staged reference; snippets are illustrative and not complete apps.
Formal Syntax & Structure
nextjs syntaxnextjs
sizes="(max-width: 306px) calc(100vw - 66px), 240px"Working Example
Example Snippetnextjs
<Image fill src="/covers/moss.png" sizes="240px" alt="" />