combobox-dropdown-menu.tsx — ui Source File
Architecture documentation for combobox-dropdown-menu.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c26a9487_122f_18c4_3f1c_0d5939da4a76["combobox-dropdown-menu.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] c26a9487_122f_18c4_3f1c_0d5939da4a76 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] c26a9487_122f_18c4_3f1c_0d5939da4a76 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"] c26a9487_122f_18c4_3f1c_0d5939da4a76 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4 546c6954_c407_41fc_2cb8_f5db98d487e2["command"] c26a9487_122f_18c4_3f1c_0d5939da4a76 --> 546c6954_c407_41fc_2cb8_f5db98d487e2 f16f43cb_04fd_5f33_2140_7eafce119350["dropdown-menu"] c26a9487_122f_18c4_3f1c_0d5939da4a76 --> f16f43cb_04fd_5f33_2140_7eafce119350 style c26a9487_122f_18c4_3f1c_0d5939da4a76 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Calendar, MoreHorizontal, Tags, Trash, User } from "lucide-react"
import { Button } from "@/registry/default/ui/button"
import {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
} from "@/registry/default/ui/command"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuSub,
DropdownMenuSubContent,
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from "@/registry/default/ui/dropdown-menu"
const labels = [
"feature",
"bug",
"enhancement",
"documentation",
"design",
"question",
"maintenance",
]
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
Functions
Dependencies
- button
- command
- dropdown-menu
- lucide-react
- react
Source
Frequently Asked Questions
What does combobox-dropdown-menu.tsx do?
combobox-dropdown-menu.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 combobox-dropdown-menu.tsx?
combobox-dropdown-menu.tsx defines 1 function(s): ComboboxDropdownMenu.
What does combobox-dropdown-menu.tsx depend on?
combobox-dropdown-menu.tsx imports 5 module(s): button, command, dropdown-menu, lucide-react, react.
Where is combobox-dropdown-menu.tsx in the architecture?
combobox-dropdown-menu.tsx is located at deprecated/www/registry/default/examples/combobox-dropdown-menu.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free