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 f37148be_0dea_69e4_04c9_fe55911c39d6["combobox-dropdown-menu.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] f37148be_0dea_69e4_04c9_fe55911c39d6 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] f37148be_0dea_69e4_04c9_fe55911c39d6 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 57e86e45_ac6e_7278_be08_9092724e8401["button"] f37148be_0dea_69e4_04c9_fe55911c39d6 --> 57e86e45_ac6e_7278_be08_9092724e8401 ea5fe791_bf71_2e59_8da4_433dcd06ee7b["command"] f37148be_0dea_69e4_04c9_fe55911c39d6 --> ea5fe791_bf71_2e59_8da4_433dcd06ee7b d1cb37f2_0d1d_01bc_0d60_a15219afac51["dropdown-menu"] f37148be_0dea_69e4_04c9_fe55911c39d6 --> d1cb37f2_0d1d_01bc_0d60_a15219afac51 style f37148be_0dea_69e4_04c9_fe55911c39d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { MoreHorizontal } from "lucide-react"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
} from "@/registry/new-york-v4/ui/command"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuSub,
DropdownMenuSubContent,
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from "@/registry/new-york-v4/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 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
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 apps/v4/registry/new-york-v4/examples/combobox-dropdown-menu.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free