combobox.tsx — ui Source File
Architecture documentation for combobox.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd["combobox.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 dd5ca5b1_3f58_bdee_d2d5_fde9b4c47ed3["react"] 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd --> dd5ca5b1_3f58_bdee_d2d5_fde9b4c47ed3 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 57e86e45_ac6e_7278_be08_9092724e8401["button"] 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd --> 57e86e45_ac6e_7278_be08_9092724e8401 41df1c2c_a3b4_dc22_8bc9_310fe8b6ba9b["input-group"] 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd --> 41df1c2c_a3b4_dc22_8bc9_310fe8b6ba9b style 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Combobox as ComboboxPrimitive } from "@base-ui/react"
import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react"
import { cn } from "@/lib/utils"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
InputGroup,
InputGroupAddon,
InputGroupButton,
InputGroupInput,
} from "@/registry/new-york-v4/ui/input-group"
const Combobox = ComboboxPrimitive.Root
function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {
return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />
}
function ComboboxTrigger({
className,
children,
...props
}: ComboboxPrimitive.Trigger.Props) {
return (
<ComboboxPrimitive.Trigger
data-slot="combobox-trigger"
className={cn("[&_svg:not([class*='size-'])]:size-4", className)}
{...props}
>
{children}
<ChevronDownIcon
data-slot="combobox-trigger-icon"
className="text-muted-foreground pointer-events-none size-4"
/>
</ComboboxPrimitive.Trigger>
)
}
function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
return (
<ComboboxPrimitive.Clear
data-slot="combobox-clear"
render={<InputGroupButton variant="ghost" size="icon-xs" />}
className={cn(className)}
{...props}
>
<XIcon className="pointer-events-none" />
</ComboboxPrimitive.Clear>
)
}
function ComboboxInput({
className,
children,
disabled = false,
showTrigger = true,
showClear = false,
// ... (251 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- input-group
- lucide-react
- react
- react
- utils
Source
Frequently Asked Questions
What does combobox.tsx do?
combobox.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.tsx?
combobox.tsx defines 16 function(s): ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, and 6 more.
What does combobox.tsx depend on?
combobox.tsx imports 6 module(s): button, input-group, lucide-react, react, react, utils.
Where is combobox.tsx in the architecture?
combobox.tsx is located at apps/v4/registry/new-york-v4/ui/combobox.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free