Home / File/ combobox.tsx — ui Source File

combobox.tsx — ui Source File

Architecture documentation for combobox.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 6 imports 16 functions

Entity Profile

Dependency Diagram

graph LR
  07d0225b_e62e_2bb7_a43c_705ab3ab636d["combobox.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  07d0225b_e62e_2bb7_a43c_705ab3ab636d --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  dd5ca5b1_3f58_bdee_d2d5_fde9b4c47ed3["react"]
  07d0225b_e62e_2bb7_a43c_705ab3ab636d --> dd5ca5b1_3f58_bdee_d2d5_fde9b4c47ed3
  ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"]
  07d0225b_e62e_2bb7_a43c_705ab3ab636d --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6
  381135fe_5f7a_910a_b8a2_691e9756a016["button"]
  07d0225b_e62e_2bb7_a43c_705ab3ab636d --> 381135fe_5f7a_910a_b8a2_691e9756a016
  0933745b_84d7_328d_17fd_7868edde7274["input-group"]
  07d0225b_e62e_2bb7_a43c_705ab3ab636d --> 0933745b_84d7_328d_17fd_7868edde7274
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  07d0225b_e62e_2bb7_a43c_705ab3ab636d --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style 07d0225b_e62e_2bb7_a43c_705ab3ab636d 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 { cn } from "@/registry/bases/radix/lib/utils"
import { Button } from "@/registry/bases/radix/ui/button"
import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/registry/bases/radix/ui/input-group"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

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("cn-combobox-trigger", className)}
      {...props}
    >
      {children}
      <IconPlaceholder
        lucide="ChevronDownIcon"
        tabler="IconChevronDown"
        hugeicons="ArrowDown01Icon"
        phosphor="CaretDownIcon"
        remixicon="RiArrowDownSLine"
        className="cn-combobox-trigger-icon pointer-events-none"
      />
    </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("cn-combobox-clear", className)}
      {...props}
    >
      <IconPlaceholder
        lucide="XIcon"
        tabler="IconX"
        hugeicons="Cancel01Icon"
        phosphor="XIcon"
        remixicon="RiCloseLine"
        className="cn-combobox-clear-icon pointer-events-none"
// ... (266 more lines)

Subdomains

Dependencies

  • button
  • icon-placeholder
  • input-group
  • react
  • react
  • utils

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, icon-placeholder, input-group, react, react, utils.
Where is combobox.tsx in the architecture?
combobox.tsx is located at apps/v4/registry/bases/radix/ui/combobox.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free