ItemDropdown() — ui Function Reference
Architecture documentation for the ItemDropdown() function in item-dropdown.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 12d53dd3_28ca_2bb1_cac9_683c6954493d["ItemDropdown()"] 9eac2ef1_6eee_114a_f4d8_f902be1f8816["item-dropdown.tsx"] 12d53dd3_28ca_2bb1_cac9_683c6954493d -->|defined in| 9eac2ef1_6eee_114a_f4d8_f902be1f8816 style 12d53dd3_28ca_2bb1_cac9_683c6954493d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/item-dropdown.tsx lines 39–71
export function ItemDropdown() {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline">
Select <ChevronDownIcon />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-48" align="end">
<DropdownMenuGroup>
{people.map((person) => (
<DropdownMenuItem key={person.username}>
<Item size="xs" className="w-full p-2">
<ItemMedia>
<Avatar className="size-[--spacing(6.5)]">
<AvatarImage src={person.avatar} className="grayscale" />
<AvatarFallback>{person.username.charAt(0)}</AvatarFallback>
</Avatar>
</ItemMedia>
<ItemContent className="gap-0">
<ItemTitle>{person.username}</ItemTitle>
<ItemDescription className="leading-none">
{person.email}
</ItemDescription>
</ItemContent>
</Item>
</DropdownMenuItem>
))}
</DropdownMenuGroup>
</DropdownMenuContent>
</DropdownMenu>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ItemDropdown() do?
ItemDropdown() is a function in the ui codebase, defined in apps/v4/examples/radix/item-dropdown.tsx.
Where is ItemDropdown() defined?
ItemDropdown() is defined in apps/v4/examples/radix/item-dropdown.tsx at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free