item-dropdown.tsx — ui Source File
Architecture documentation for item-dropdown.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 96fa455a_13de_5120_ab3b_456bb582932f["item-dropdown.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 96fa455a_13de_5120_ab3b_456bb582932f --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 550576ca_32fe_8288_72d6_10281189833b["avatar"] 96fa455a_13de_5120_ab3b_456bb582932f --> 550576ca_32fe_8288_72d6_10281189833b 57e86e45_ac6e_7278_be08_9092724e8401["button"] 96fa455a_13de_5120_ab3b_456bb582932f --> 57e86e45_ac6e_7278_be08_9092724e8401 d1cb37f2_0d1d_01bc_0d60_a15219afac51["dropdown-menu"] 96fa455a_13de_5120_ab3b_456bb582932f --> d1cb37f2_0d1d_01bc_0d60_a15219afac51 58f4fa76_4350_6209_54e6_f19a58e0eda4["item"] 96fa455a_13de_5120_ab3b_456bb582932f --> 58f4fa76_4350_6209_54e6_f19a58e0eda4 style 96fa455a_13de_5120_ab3b_456bb582932f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { ChevronDownIcon } from "lucide-react"
import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/registry/new-york-v4/ui/avatar"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/registry/new-york-v4/ui/dropdown-menu"
import {
Item,
ItemContent,
ItemDescription,
ItemMedia,
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 ItemDropdown() {
return (
<div className="flex min-h-64 w-full max-w-md flex-col items-center gap-6">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="sm" className="w-fit">
Select <ChevronDownIcon />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-72 [--radius:0.65rem]" align="end">
{people.map((person) => (
<DropdownMenuItem key={person.username} className="p-0">
<Item size="sm" className="w-full p-2">
<ItemMedia>
<Avatar className="size-8">
<AvatarImage src={person.avatar} className="grayscale" />
<AvatarFallback>{person.username.charAt(0)}</AvatarFallback>
</Avatar>
</ItemMedia>
<ItemContent className="gap-0.5">
<ItemTitle>{person.username}</ItemTitle>
<ItemDescription>{person.email}</ItemDescription>
</ItemContent>
</Item>
</DropdownMenuItem>
))}
</DropdownMenuContent>
</DropdownMenu>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- avatar
- button
- dropdown-menu
- item
- lucide-react
Source
Frequently Asked Questions
What does item-dropdown.tsx do?
item-dropdown.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-dropdown.tsx?
item-dropdown.tsx defines 1 function(s): ItemDropdown.
What does item-dropdown.tsx depend on?
item-dropdown.tsx imports 5 module(s): avatar, button, dropdown-menu, item, lucide-react.
Where is item-dropdown.tsx in the architecture?
item-dropdown.tsx is located at apps/v4/registry/new-york-v4/examples/item-dropdown.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