AvatarDemo() — ui Function Reference
Architecture documentation for the AvatarDemo() function in avatar-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 4488edf1_a3df_3772_daf5_918c1bf1b51a["AvatarDemo()"] e52faf7a_9f9c_cd13_fcb2_506dacb95ce2["avatar-demo.tsx"] 4488edf1_a3df_3772_daf5_918c1bf1b51a -->|defined in| e52faf7a_9f9c_cd13_fcb2_506dacb95ce2 style 4488edf1_a3df_3772_daf5_918c1bf1b51a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/avatar-demo.tsx lines 10–52
export default function AvatarDemo() {
return (
<div className="flex flex-row flex-wrap items-center gap-6 md:gap-12">
<Avatar>
<AvatarImage
src="https://github.com/shadcn.png"
alt="@shadcn"
className="grayscale"
/>
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<Avatar>
<AvatarImage
src="https://github.com/evilrabbit.png"
alt="@evilrabbit"
/>
<AvatarFallback>ER</AvatarFallback>
<AvatarBadge className="bg-green-600 dark:bg-green-800" />
</Avatar>
<AvatarGroup className="grayscale">
<Avatar>
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<Avatar>
<AvatarImage
src="https://github.com/maxleiter.png"
alt="@maxleiter"
/>
<AvatarFallback>LR</AvatarFallback>
</Avatar>
<Avatar>
<AvatarImage
src="https://github.com/evilrabbit.png"
alt="@evilrabbit"
/>
<AvatarFallback>ER</AvatarFallback>
</Avatar>
<AvatarGroupCount>+3</AvatarGroupCount>
</AvatarGroup>
</div>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does AvatarDemo() do?
AvatarDemo() is a function in the ui codebase, defined in apps/v4/examples/base/avatar-demo.tsx.
Where is AvatarDemo() defined?
AvatarDemo() is defined in apps/v4/examples/base/avatar-demo.tsx at line 10.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free