item-avatar.tsx — ui Source File
Architecture documentation for item-avatar.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 0f10ad32_ae80_bda8_7f5b_d4183f9f20d8["item-avatar.tsx"] 00c9789a_2f63_b98d_c90d_4d6abf3582ce["avatar"] 0f10ad32_ae80_bda8_7f5b_d4183f9f20d8 --> 00c9789a_2f63_b98d_c90d_4d6abf3582ce 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] 0f10ad32_ae80_bda8_7f5b_d4183f9f20d8 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 6dd5189d_43e3_a38a_acbe_4ea1ae186ae2["item"] 0f10ad32_ae80_bda8_7f5b_d4183f9f20d8 --> 6dd5189d_43e3_a38a_acbe_4ea1ae186ae2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 0f10ad32_ae80_bda8_7f5b_d4183f9f20d8 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style 0f10ad32_ae80_bda8_7f5b_d4183f9f20d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Avatar, AvatarFallback, AvatarImage } from "@/examples/base/ui/avatar"
import { Button } from "@/examples/base/ui/button"
import {
Item,
ItemActions,
ItemContent,
ItemDescription,
ItemMedia,
ItemTitle,
} from "@/examples/base/ui/item"
import { Plus } from "lucide-react"
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
Functions
Dependencies
- avatar
- button
- item
- lucide-react
Source
Frequently Asked Questions
What does item-avatar.tsx do?
item-avatar.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in item-avatar.tsx?
item-avatar.tsx defines 1 function(s): ItemAvatar.
What does item-avatar.tsx depend on?
item-avatar.tsx imports 4 module(s): avatar, button, item, lucide-react.
Where is item-avatar.tsx in the architecture?
item-avatar.tsx is located at apps/v4/examples/base/item-avatar.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free