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

Relationship Graph

Source Code

apps/v4/examples/radix/ui/combobox.tsx lines 51–86

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"
            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/examples/radix/ui/combobox.tsx.
Where is ComboboxInput() defined?
ComboboxInput() is defined in apps/v4/examples/radix/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