Home / Function/ AvatarGroup() — ui Function Reference

AvatarGroup() — ui Function Reference

Architecture documentation for the AvatarGroup() function in avatar.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  86dfb8f7_5069_71d6_f9fb_1722a2c6a550["AvatarGroup()"]
  55d8e2d3_fb66_3ef4_a94f_bc4bfdea954b["avatar.tsx"]
  86dfb8f7_5069_71d6_f9fb_1722a2c6a550 -->|defined in| 55d8e2d3_fb66_3ef4_a94f_bc4bfdea954b
  style 86dfb8f7_5069_71d6_f9fb_1722a2c6a550 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/avatar.tsx lines 72–83

function AvatarGroup({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="avatar-group"
      className={cn(
        "*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does AvatarGroup() do?
AvatarGroup() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/avatar.tsx.
Where is AvatarGroup() defined?
AvatarGroup() is defined in apps/v4/examples/base/ui-rtl/avatar.tsx at line 72.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free