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 6c2bf819_c2dc_035b_1d7e_17f172da058a["item-avatar.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 6c2bf819_c2dc_035b_1d7e_17f172da058a --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 550576ca_32fe_8288_72d6_10281189833b["avatar"] 6c2bf819_c2dc_035b_1d7e_17f172da058a --> 550576ca_32fe_8288_72d6_10281189833b 57e86e45_ac6e_7278_be08_9092724e8401["button"] 6c2bf819_c2dc_035b_1d7e_17f172da058a --> 57e86e45_ac6e_7278_be08_9092724e8401 58f4fa76_4350_6209_54e6_f19a58e0eda4["item"] 6c2bf819_c2dc_035b_1d7e_17f172da058a --> 58f4fa76_4350_6209_54e6_f19a58e0eda4 style 6c2bf819_c2dc_035b_1d7e_17f172da058a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Plus } from "lucide-react"
import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/registry/new-york-v4/ui/avatar"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Item,
ItemActions,
ItemContent,
ItemDescription,
ItemMedia,
ItemTitle,
} from "@/registry/new-york-v4/ui/item"
export function ItemAvatar() {
return (
<div className="flex w-full max-w-lg flex-col gap-6">
<Item variant="outline" className="hidden">
<ItemMedia>
<Avatar className="size-10">
<AvatarImage src="https://github.com/maxleiter.png" />
<AvatarFallback>LR</AvatarFallback>
</Avatar>
</ItemMedia>
<ItemContent>
<ItemTitle>Max Leiter</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.</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/app/(app)/(root)/components/item-avatar.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(app)/(root)/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free