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 DocumentationAtlas SearchAPI 6 imports 16 functions

Entity Profile

Dependency Diagram

graph LR
  44e104c9_97a9_6987_d634_5e4ac9c29548["combobox.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  44e104c9_97a9_6987_d634_5e4ac9c29548 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  191e4a89_25e4_f7a3_d5fb_d71d101e0990["utils"]
  44e104c9_97a9_6987_d634_5e4ac9c29548 --> 191e4a89_25e4_f7a3_d5fb_d71d101e0990
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  44e104c9_97a9_6987_d634_5e4ac9c29548 --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  d4ae1ebd_39ec_2b17_5c84_fbca1aec26c7["input-group"]
  44e104c9_97a9_6987_d634_5e4ac9c29548 --> d4ae1ebd_39ec_2b17_5c84_fbca1aec26c7
  dd5ca5b1_3f58_bdee_d2d5_fde9b4c47ed3["react"]
  44e104c9_97a9_6987_d634_5e4ac9c29548 --> dd5ca5b1_3f58_bdee_d2d5_fde9b4c47ed3
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  44e104c9_97a9_6987_d634_5e4ac9c29548 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 44e104c9_97a9_6987_d634_5e4ac9c29548 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { cn } from "@/examples/radix/lib/utils"
import { Button } from "@/examples/radix/ui/button"
import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/examples/radix/ui/input-group"
import { Combobox as ComboboxPrimitive } from "@base-ui/react"
import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react"

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 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,
  ...props
}: ComboboxPrimitive.Input.Props & {
  showTrigger?: boolean
  showClear?: boolean
// ... (242 more lines)

Subdomains

Dependencies

  • button
  • input-group
  • lucide-react
  • 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 DocumentationAtlas domain, SearchAPI 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/examples/radix/ui/combobox.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix/ui).

Analyze Your Own Codebase

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

Try Supermodel Free