Avatar() — ui Function Reference
Architecture documentation for the Avatar() function in avatar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 804ebb2a_3f67_0585_c2b2_e8701fdaca64["Avatar()"] a569ba89_14b5_b23e_2c1c_20d0ed4dea93["avatar.tsx"] 804ebb2a_3f67_0585_c2b2_e8701fdaca64 -->|defined in| a569ba89_14b5_b23e_2c1c_20d0ed4dea93 style 804ebb2a_3f67_0585_c2b2_e8701fdaca64 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/ui/avatar.tsx lines 8–26
function Avatar({
className,
size = "default",
...props
}: AvatarPrimitive.Root.Props & {
size?: "default" | "sm" | "lg"
}) {
return (
<AvatarPrimitive.Root
data-slot="avatar"
data-size={size}
className={cn(
"cn-avatar after:border-border group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:mix-blend-darken dark:after:mix-blend-lighten",
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/bases/base/ui/avatar.tsx.
Where is Avatar() defined?
Avatar() is defined in apps/v4/registry/bases/base/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