Home / Function/ ComboboxInput() — ui Function Reference

ComboboxInput() — ui Function Reference

Architecture documentation for the ComboboxInput() function in combobox.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  49ddd880_19ee_e853_1f76_738ef6f1dd49["ComboboxInput()"]
  07d0225b_e62e_2bb7_a43c_705ab3ab636d["combobox.tsx"]
  49ddd880_19ee_e853_1f76_738ef6f1dd49 -->|defined in| 07d0225b_e62e_2bb7_a43c_705ab3ab636d
  style 49ddd880_19ee_e853_1f76_738ef6f1dd49 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/combobox.tsx lines 66–101

function ComboboxInput({
  className,
  children,
  disabled = false,
  showTrigger = true,
  showClear = false,
  ...props
}: ComboboxPrimitive.Input.Props & {
  showTrigger?: boolean
  showClear?: boolean
}) {
  return (
    <InputGroup className={cn("cn-combobox-input w-auto", className)}>
      <ComboboxPrimitive.Input
        render={<InputGroupInput disabled={disabled} />}
        {...props}
      />
      <InputGroupAddon align="inline-end">
        {showTrigger && (
          <InputGroupButton
            size="icon-xs"
            variant="ghost"
            asChild
            data-slot="input-group-button"
            className="group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent"
            disabled={disabled}
          >
            <ComboboxTrigger />
          </InputGroupButton>
        )}
        {showClear && <ComboboxClear disabled={disabled} />}
      </InputGroupAddon>
      {children}
    </InputGroup>
  )
}

Subdomains

Frequently Asked Questions

What does ComboboxInput() do?
ComboboxInput() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/combobox.tsx.
Where is ComboboxInput() defined?
ComboboxInput() is defined in apps/v4/registry/bases/radix/ui/combobox.tsx at line 66.

Analyze Your Own Codebase

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

Try Supermodel Free