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
  a0fd6b40_9461_a4b4_0670_97b6db49e709["combobox.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  a0fd6b40_9461_a4b4_0670_97b6db49e709 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  3d9438e8_7604_787c_4898_907262aff28b["utils"]
  a0fd6b40_9461_a4b4_0670_97b6db49e709 --> 3d9438e8_7604_787c_4898_907262aff28b
  43bb9fc1_6eab_13df_a99b_981eb13b9ec1["button"]
  a0fd6b40_9461_a4b4_0670_97b6db49e709 --> 43bb9fc1_6eab_13df_a99b_981eb13b9ec1
  5a7da2d0_5f0c_be7c_cec3_d1c492aa50f7["input-group"]
  a0fd6b40_9461_a4b4_0670_97b6db49e709 --> 5a7da2d0_5f0c_be7c_cec3_d1c492aa50f7
  dd5ca5b1_3f58_bdee_d2d5_fde9b4c47ed3["react"]
  a0fd6b40_9461_a4b4_0670_97b6db49e709 --> dd5ca5b1_3f58_bdee_d2d5_fde9b4c47ed3
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  a0fd6b40_9461_a4b4_0670_97b6db49e709 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style a0fd6b40_9461_a4b4_0670_97b6db49e709 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { cn } from "@/examples/base/lib/utils"
import { Button } from "@/examples/base/ui-rtl/button"
import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/examples/base/ui-rtl/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
// ... (240 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/base/ui-rtl/combobox.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base/ui-rtl).

Analyze Your Own Codebase

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

Try Supermodel Free