Open this example in the interactive library
Source code
// components/SmallAvatarImage.tsx
import Image from "next/image";
export default function SmallAvatarImage({
src = "/studio.jpg",
alt = "Inside the studio",
}: { src?: string; alt?: string } = {}) {
return (
<Image
src={src}
alt={alt}
width={64}
height={64}
style={{ borderRadius: "50%", objectFit: "cover" }}
/>
);
}
