ItemAvatar() — ui Function Reference
Architecture documentation for the ItemAvatar() function in item-avatar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 2ed01335_b50e_be14_5281_e2c645fd0c56["ItemAvatar()"] 0f10ad32_ae80_bda8_7f5b_d4183f9f20d8["item-avatar.tsx"] 2ed01335_b50e_be14_5281_e2c645fd0c56 -->|defined in| 0f10ad32_ae80_bda8_7f5b_d4183f9f20d8 style 2ed01335_b50e_be14_5281_e2c645fd0c56 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/item-avatar.tsx lines 13–75
export function ItemAvatar() {
return (
<div className="flex w-full max-w-lg flex-col gap-6">
<Item variant="outline">
<ItemMedia>
<Avatar className="size-10">
<AvatarImage src="https://github.com/evilrabbit.png" />
<AvatarFallback>ER</AvatarFallback>
</Avatar>
</ItemMedia>
<ItemContent>
<ItemTitle>Evil Rabbit</ItemTitle>
<ItemDescription>Last seen 5 months ago</ItemDescription>
</ItemContent>
<ItemActions>
<Button
size="icon-sm"
variant="outline"
className="rounded-full"
aria-label="Invite"
>
<Plus />
</Button>
</ItemActions>
</Item>
<Item variant="outline">
<ItemMedia>
<div className="*:data-[slot=avatar]:ring-background flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:grayscale">
<Avatar className="hidden sm:flex">
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<Avatar className="hidden sm:flex">
<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>
</div>
</ItemMedia>
<ItemContent>
<ItemTitle>No Team Members</ItemTitle>
<ItemDescription>
Invite your team to collaborate on this project.
</ItemDescription>
</ItemContent>
<ItemActions>
<Button size="sm" variant="outline">
Invite
</Button>
</ItemActions>
</Item>
</div>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ItemAvatar() do?
ItemAvatar() is a function in the ui codebase, defined in apps/v4/examples/base/item-avatar.tsx.
Where is ItemAvatar() defined?
ItemAvatar() is defined in apps/v4/examples/base/item-avatar.tsx at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free