Components
Loading preview...
Avatars represent a user or a team. Stacked avatars represent a group of people
@shugar
npx shadcn@latest add https://21st.dev/r/shugar/avatar-1import { 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://avatars.githubusercontent.com/rauchg?s=64" }
]}
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>
);
}