Home / Function/ AvatarImage() — ui Function Reference

AvatarImage() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  937a26d7_def0_fb05_d030_3d3d29dc8562["AvatarImage()"]
  be692f8d_42ed_9898_a305_5ee346d784a3["avatar.tsx"]
  937a26d7_def0_fb05_d030_3d3d29dc8562 -->|defined in| be692f8d_42ed_9898_a305_5ee346d784a3
  style 937a26d7_def0_fb05_d030_3d3d29dc8562 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui/avatar.tsx lines 27–41

function AvatarImage({
  className,
  ...props
}: React.ComponentProps<typeof AvatarPrimitive.Image>) {
  return (
    <AvatarPrimitive.Image
      data-slot="avatar-image"
      className={cn(
        "aspect-square size-full rounded-full object-cover",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does AvatarImage() do?
AvatarImage() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/avatar.tsx.
Where is AvatarImage() defined?
AvatarImage() is defined in apps/v4/examples/radix/ui/avatar.tsx at line 27.

Analyze Your Own Codebase

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

Try Supermodel Free