chrisdalbano

Avatar Group

Component

About

A stacked list of avatars (e.g. team members or participants) that collapses extras into a "+N" overflow badge, with pop-in/pop-out animation on add, remove and reorder; ported to React from the original Vue "FzAvatarGroup" in Chrisdalbano's Forza UI.

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

Code

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

Usage.tsx

import FzAvatarGroup, {
  type ForzaPerson,
} from "@/components/ui/fz-avatar-group";

const team: ForzaPerson[] = [
  { id: 1, name: "Chris Albano" },
  { id: 2, name: "Mina Park" },
  { id: 3, name: "Jules Renard" },
  { id: 4, name: "Theo Fischer" },
  { id: 5, name: "Ada Lovelace" },
  { id: 6, name: "Grace Hopper" },
];

export default function FzAvatarGroupDemo() {
  return (
    <div className="flex min-h-[220px] w-full items-center justify-center bg-[#101416] p-10 text-[#f2efe6]">
      <FzAvatarGroup people={team} label="Team members" max={4} size="md" />
    </div>
  );
}

More by chrisdalbano

View all
  • Forza Button

    Forza Button

    6
  • Fz Accordion

    Fz Accordion

    5
  • Forza Table

    Forza Table

    2
  • Forza Textarea

    Forza Textarea

  • Fz Tabs

    Fz Tabs