Home / Function/ ItemDropdown() — ui Function Reference

ItemDropdown() — ui Function Reference

Architecture documentation for the ItemDropdown() function in item-dropdown.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  0259cfdd_3bd4_a94f_379f_08ec21325f3c["ItemDropdown()"]
  15a2ea91_6e5e_8e68_a980_93d389f43be6["item-dropdown.tsx"]
  0259cfdd_3bd4_a94f_379f_08ec21325f3c -->|defined in| 15a2ea91_6e5e_8e68_a980_93d389f43be6
  style 0259cfdd_3bd4_a94f_379f_08ec21325f3c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/item-dropdown.tsx lines 39–69

export function ItemDropdown() {
  return (
    <DropdownMenu>
      <DropdownMenuTrigger render={<Button variant="outline" />}>
        Select <ChevronDownIcon />
      </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>
  )
}

Subdomains

Frequently Asked Questions

What does ItemDropdown() do?
ItemDropdown() is a function in the ui codebase, defined in apps/v4/examples/base/item-dropdown.tsx.
Where is ItemDropdown() defined?
ItemDropdown() is defined in apps/v4/examples/base/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