AvatarSizes() — ui Function Reference
Architecture documentation for the AvatarSizes() function in avatar-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD d47c02a7_3502_ebaa_7555_b5b81fcf4d5f["AvatarSizes()"] da628c9f_c737_5cef_6f42_0c35975bff72["avatar-example.tsx"] d47c02a7_3502_ebaa_7555_b5b81fcf4d5f -->|defined in| da628c9f_c737_5cef_6f42_0c35975bff72 style d47c02a7_3502_ebaa_7555_b5b81fcf4d5f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/avatar-example.tsx lines 38–68
function AvatarSizes() {
return (
<Example title="Sizes">
<div className="flex flex-wrap items-center gap-2">
<Avatar size="sm">
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<Avatar>
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<Avatar size="lg">
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
</div>
<div className="flex flex-wrap items-center gap-2">
<Avatar size="sm">
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<Avatar>
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<Avatar size="lg">
<AvatarFallback>CN</AvatarFallback>
</Avatar>
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AvatarSizes() do?
AvatarSizes() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/avatar-example.tsx.
Where is AvatarSizes() defined?
AvatarSizes() is defined in apps/v4/registry/bases/base/examples/avatar-example.tsx at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free