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
  0b9bdabd_9c22_302e_c959_ae82d373c5ef["AvatarFallback()"]
  be692f8d_42ed_9898_a305_5ee346d784a3["avatar.tsx"]
  0b9bdabd_9c22_302e_c959_ae82d373c5ef -->|defined in| be692f8d_42ed_9898_a305_5ee346d784a3
  style 0b9bdabd_9c22_302e_c959_ae82d373c5ef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui/avatar.tsx lines 43–57

function AvatarFallback({
  className,
  ...props
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {
  return (
    <AvatarPrimitive.Fallback
      data-slot="avatar-fallback"
      className={cn(
        "bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full 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/examples/radix/ui/avatar.tsx.
Where is AvatarFallback() defined?
AvatarFallback() is defined in apps/v4/examples/radix/ui/avatar.tsx at line 43.

Analyze Your Own Codebase

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

Try Supermodel Free