item-group.tsx — ui Source File
Architecture documentation for item-group.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 5bec9550_b096_69f3_ae83_b4a632e604b9["item-group.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 5bec9550_b096_69f3_ae83_b4a632e604b9 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 5bec9550_b096_69f3_ae83_b4a632e604b9 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 550576ca_32fe_8288_72d6_10281189833b["avatar"] 5bec9550_b096_69f3_ae83_b4a632e604b9 --> 550576ca_32fe_8288_72d6_10281189833b 57e86e45_ac6e_7278_be08_9092724e8401["button"] 5bec9550_b096_69f3_ae83_b4a632e604b9 --> 57e86e45_ac6e_7278_be08_9092724e8401 58f4fa76_4350_6209_54e6_f19a58e0eda4["item"] 5bec9550_b096_69f3_ae83_b4a632e604b9 --> 58f4fa76_4350_6209_54e6_f19a58e0eda4 style 5bec9550_b096_69f3_ae83_b4a632e604b9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import { PlusIcon } 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,
ItemGroup,
ItemMedia,
ItemSeparator,
ItemTitle,
} from "@/registry/new-york-v4/ui/item"
const people = [
{
username: "shadcn",
avatar: "https://github.com/shadcn.png",
email: "shadcn@vercel.com",
},
{
username: "maxleiter",
avatar: "https://github.com/maxleiter.png",
email: "maxleiter@vercel.com",
},
{
username: "evilrabbit",
avatar: "https://github.com/evilrabbit.png",
email: "evilrabbit@vercel.com",
},
]
export default function ItemGroupExample() {
return (
<div className="flex w-full max-w-md flex-col gap-6">
<ItemGroup>
{people.map((person, index) => (
<React.Fragment key={person.username}>
<Item>
<ItemMedia>
<Avatar>
<AvatarImage src={person.avatar} className="grayscale" />
<AvatarFallback>{person.username.charAt(0)}</AvatarFallback>
</Avatar>
</ItemMedia>
<ItemContent className="gap-1">
<ItemTitle>{person.username}</ItemTitle>
<ItemDescription>{person.email}</ItemDescription>
</ItemContent>
<ItemActions>
<Button variant="ghost" size="icon" className="rounded-full">
<PlusIcon />
</Button>
</ItemActions>
</Item>
{index !== people.length - 1 && <ItemSeparator />}
</React.Fragment>
))}
</ItemGroup>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- avatar
- button
- item
- lucide-react
- react
Source
Frequently Asked Questions
What does item-group.tsx do?
item-group.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in item-group.tsx?
item-group.tsx defines 1 function(s): ItemGroupExample.
What does item-group.tsx depend on?
item-group.tsx imports 5 module(s): avatar, button, item, lucide-react, react.
Where is item-group.tsx in the architecture?
item-group.tsx is located at apps/v4/registry/new-york-v4/examples/item-group.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free