Home / Function/ AvatarFallback() — ui Function Reference

AvatarFallback() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1adbad29_722c_34b1_e42c_373fcfd288d2["AvatarFallback()"]
  a569ba89_14b5_b23e_2c1c_20d0ed4dea93["avatar.tsx"]
  1adbad29_722c_34b1_e42c_373fcfd288d2 -->|defined in| a569ba89_14b5_b23e_2c1c_20d0ed4dea93
  style 1adbad29_722c_34b1_e42c_373fcfd288d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/avatar.tsx lines 41–55

function AvatarFallback({
  className,
  ...props
}: AvatarPrimitive.Fallback.Props) {
  return (
    <AvatarPrimitive.Fallback
      data-slot="avatar-fallback"
      className={cn(
        "cn-avatar-fallback flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does AvatarFallback() do?
AvatarFallback() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/avatar.tsx.
Where is AvatarFallback() defined?
AvatarFallback() is defined in apps/v4/registry/bases/base/ui/avatar.tsx at line 41.

Analyze Your Own Codebase

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

Try Supermodel Free