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
  77ed45d6_4735_22dd_56a6_b6c85031efc4["ComboboxInput()"]
  dac51d75_d063_fa67_a9af_e6357896e810["combobox.tsx"]
  77ed45d6_4735_22dd_56a6_b6c85031efc4 -->|defined in| dac51d75_d063_fa67_a9af_e6357896e810
  style 77ed45d6_4735_22dd_56a6_b6c85031efc4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui/combobox.tsx lines 51–84

function ComboboxInput({
  className,
  children,
  disabled = false,
  showTrigger = true,
  showClear = false,
  ...props
}: ComboboxPrimitive.Input.Props & {
  showTrigger?: boolean
  showClear?: boolean
}) {
  return (
    <InputGroup className={cn("w-auto", className)}>
      <ComboboxPrimitive.Input
        render={<InputGroupInput disabled={disabled} />}
        {...props}
      />
      <InputGroupAddon align="inline-end">
        {showTrigger && (
          <InputGroupButton
            size="icon-xs"
            variant="ghost"
            render={<ComboboxTrigger />}
            data-slot="input-group-button"
            className="group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent"
            disabled={disabled}
          />
        )}
        {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/examples/base/ui/combobox.tsx.
Where is ComboboxInput() defined?
ComboboxInput() is defined in apps/v4/examples/base/ui/combobox.tsx at line 51.

Analyze Your Own Codebase

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

Try Supermodel Free