tigran tumasov

Avatar

Component 13

About

Avatars represent a user or a team. Stacked avatars represent a group of people

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Avatar to your project and fits it to your theme.

Code

How Avatar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { AvatarGroup } from "@/components/ui/avatar-1";

export default function DefaultDemo() {
  return (
      <div className="flex flex-col gap-2 w-3/4">
        <AvatarGroup
          members={[
            { username: "evilrabbit", src: "https://vercel.com/api/www/avatar?u=evilrabbit&s=64" },
            { username: "leerob", src: "https://vercel.com/api/www/avatar?u=leerob&s=64" },
            { username: "rauchg", src: "https://cdn.21st.dev/assets/mirror/f4/f4717d0b7a61f81945fa88eb7852b830d4dbd06634363e943498ff10dc846b14.jpg" }
          ]}
          size={32}
        />
        <AvatarGroup
          limit={4}
          members={[
            { username: "sambecker", src: "https://vercel.com/api/www/avatar?u=sambecker&s=64" },
            { username: "rauno", src: "https://vercel.com/api/www/avatar?u=rauno&s=64" },
            { username: "shuding", src: "https://vercel.com/api/www/avatar?u=shuding&s=64" },
            { username: "skllcrn" },
            { username: "almonk" }
          ]}
          size={32}
        />
      </div>
  );
}

Dependencies

More by tigran tumasov

View all
  • Product Hunt Badge

    Product Hunt Badge

    1.8K
  • Book

    Book

    162
  • Calendar

    Calendar

    152
  • Theme Switcher

    Theme Switcher

    135
  • Snippet

    Snippet

    124
  • Table

    Table

    123
  • Toggle

    Toggle

    89
  • Feedback

    Feedback

    88