Working on a simple grid with images and text. using Next 13.4.7 and tailwind, But when I try to import the image using the Next Image component and using the fill prop the image doesn't render.
return (
<button className="relative group flex items-center rounded-md overflow-hidden gap-x-4 bg-neutral-100/10 hover:bg-neutral-100/20 pr-4 transition">
<div className="relative min-h-[64px] min-w -[64px]">
<Image className="object-cover" fill src={image} alt="Image" />
</div>
<p>
{name}
</p>
</button>
);
I have tried explicitly defining fill to true
fill = {true}
And that didn't work either.
But it seems to respond to swapping fill for height and width props
<Image className="object-cover" width={64} height={64} src={image} alt="Liked Playlist" />
Does anyone have an Idea on why that's happening? or what I'm doing wrong?