blog icon indicating copy to clipboard operation
blog copied to clipboard

How to use nextjs Image

Open onmyway133 opened this issue 1 year ago • 0 comments

Fill parent div

A boolean that causes the image to fill the parent element, which is useful when the width and height are unknown.

The parent element must assign position: "relative", position: "fixed", or position: "absolute" style.

<div className="relative">
	<Image src="" alt="" fill objectFit="cover" />
</div>

onmyway133 avatar Jan 07 '24 08:01 onmyway133