ItemAvatar() — ui Function Reference
Architecture documentation for the ItemAvatar() function in item-avatar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 54a11351_a5fd_6a6f_4a82_62c45d270b38["ItemAvatar()"] 9bf47c15_50d8_b5b7_1c7c_a6cc306a6004["item-avatar.tsx"] 54a11351_a5fd_6a6f_4a82_62c45d270b38 -->|defined in| 9bf47c15_50d8_b5b7_1c7c_a6cc306a6004 style 54a11351_a5fd_6a6f_4a82_62c45d270b38 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/examples/item-avatar.tsx lines 18–80
export default 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
Source
Frequently Asked Questions
What does ItemAvatar() do?
ItemAvatar() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/item-avatar.tsx.
Where is ItemAvatar() defined?
ItemAvatar() is defined in apps/v4/registry/new-york-v4/examples/item-avatar.tsx at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free