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 46af7f7f_cfde_19fb_a519_0b262e439e70["ComboboxDropdownMenu()"] c26a9487_122f_18c4_3f1c_0d5939da4a76["combobox-dropdown-menu.tsx"] 46af7f7f_cfde_19fb_a519_0b262e439e70 -->|defined in| c26a9487_122f_18c4_3f1c_0d5939da4a76 style 46af7f7f_cfde_19fb_a519_0b262e439e70 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/examples/combobox-dropdown-menu.tsx lines 39–111
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 font-medium leading-none">
<span className="mr-2 rounded-lg bg-primary px-2 py-1 text-xs text-primary-foreground">
{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>
<User />
Assign to...
</DropdownMenuItem>
<DropdownMenuItem>
<Calendar />
Set due date...
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuSub>
<DropdownMenuSubTrigger>
<Tags />
Apply label
</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="p-0">
<Command>
<CommandInput
placeholder="Filter label..."
autoFocus={true}
/>
<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">
<Trash />
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 deprecated/www/registry/default/examples/combobox-dropdown-menu.tsx.
Where is ComboboxDropdownMenu() defined?
ComboboxDropdownMenu() is defined in deprecated/www/registry/default/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