ComboboxDropdownMenu() — ui Function Reference
Architecture documentation for the ComboboxDropdownMenu() function in combobox-dropdown-menu.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 9e369c54_deab_c10c_17d2_99c1853f4d3b["ComboboxDropdownMenu()"] f37148be_0dea_69e4_04c9_fe55911c39d6["combobox-dropdown-menu.tsx"] 9e369c54_deab_c10c_17d2_99c1853f4d3b -->|defined in| f37148be_0dea_69e4_04c9_fe55911c39d6 style 9e369c54_deab_c10c_17d2_99c1853f4d3b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/examples/combobox-dropdown-menu.tsx lines 39–102
export default function ComboboxDropdownMenu() {
const [label, setLabel] = React.useState("feature")
const [open, setOpen] = React.useState(false)
return (
<div className="flex w-full flex-col items-start justify-between rounded-md border px-4 py-3 sm:flex-row sm:items-center">
<p className="text-sm leading-none font-medium">
<span className="bg-primary text-primary-foreground mr-2 rounded-lg px-2 py-1 text-xs">
{label}
</span>
<span className="text-muted-foreground">Create a new project</span>
</p>
<DropdownMenu open={open} onOpenChange={setOpen}>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="sm">
<MoreHorizontal />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-[200px]">
<DropdownMenuLabel>Actions</DropdownMenuLabel>
<DropdownMenuGroup>
<DropdownMenuItem>Assign to...</DropdownMenuItem>
<DropdownMenuItem>Set due date...</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuSub>
<DropdownMenuSubTrigger>Apply label</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="p-0">
<Command>
<CommandInput
placeholder="Filter label..."
autoFocus={true}
className="h-9"
/>
<CommandList>
<CommandEmpty>No label found.</CommandEmpty>
<CommandGroup>
{labels.map((label) => (
<CommandItem
key={label}
value={label}
onSelect={(value) => {
setLabel(value)
setOpen(false)
}}
>
{label}
</CommandItem>
))}
</CommandGroup>
</CommandList>
</Command>
</DropdownMenuSubContent>
</DropdownMenuSub>
<DropdownMenuSeparator />
<DropdownMenuItem className="text-red-600">
Delete
<DropdownMenuShortcut>⌘⌫</DropdownMenuShortcut>
</DropdownMenuItem>
</DropdownMenuGroup>
</DropdownMenuContent>
</DropdownMenu>
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ComboboxDropdownMenu() do?
ComboboxDropdownMenu() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/combobox-dropdown-menu.tsx.
Where is ComboboxDropdownMenu() defined?
ComboboxDropdownMenu() is defined in apps/v4/registry/new-york-v4/examples/combobox-dropdown-menu.tsx at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free