Skip to content

    Browse components

    Avatar Group

    Overlapping avatar stack that fans apart on hover, with name tooltips and a +N overflow chip.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/avatar-group

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/avatar-group.json

    Usage

    import { AvatarGroup } from "@/components/ui/avatar-group";
    
    <AvatarGroup max={4} people={[{ name: "Maya Chen", src: "/maya.jpg" }, { name: "Jonas Weber" }]} />

    Props

    PropTypeDefaultDescription
    peopleReactNode—Array of { name, src? }.
    maxnumber4Avatars shown before the +N chip.
    sizenumber44Avatar diameter in px.
    overlapnumber14Px each avatar tucks under the previous one.
    spreadbooleantrueFan apart on hover or keyboard focus.
    classNamestring—Extra classes for the root element.