Avatar() — ui Function Reference
Architecture documentation for the Avatar() function in avatar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD f288243b_e1e6_a15c_1a2c_d2aff0d663ac["Avatar()"] 435f1c1f_968d_8b53_779a_3ad1a367863e["avatar.tsx"] f288243b_e1e6_a15c_1a2c_d2aff0d663ac -->|defined in| 435f1c1f_968d_8b53_779a_3ad1a367863e style f288243b_e1e6_a15c_1a2c_d2aff0d663ac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/avatar.tsx lines 8–26
function Avatar({
className,
size = "default",
...props
}: React.ComponentProps<typeof AvatarPrimitive.Root> & {
size?: "default" | "sm" | "lg"
}) {
return (
<AvatarPrimitive.Root
data-slot="avatar"
data-size={size}
className={cn(
"group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Avatar() do?
Avatar() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/avatar.tsx.
Where is Avatar() defined?
Avatar() is defined in apps/v4/registry/new-york-v4/ui/avatar.tsx at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free