Dev Helpers
← Back

Small avatar image

Place this file at components/SmallAvatarImage.tsx in an App Router project. Provide public/studio.jpg or pass your own image source.

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" }}
    />
  );
}