MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / ComboboxInput

Function ComboboxInput

components/ui/combobox.tsx:65–98  ·  view source on GitHub ↗
({
  className,
  children,
  disabled = false,
  showTrigger = true,
  showClear = false,
  ...props
}: ComboboxPrimitive.Input.Props & {
  showTrigger?: boolean;
  showClear?: boolean;
})

Source from the content-addressed store, hash-verified

63}
64
65function ComboboxInput({
66 className,
67 children,
68 disabled = false,
69 showTrigger = true,
70 showClear = false,
71 ...props
72}: ComboboxPrimitive.Input.Props & {
73 showTrigger?: boolean;
74 showClear?: boolean;
75}) {
76 return (
77 <InputGroup className={cn("w-auto", className)}>
78 <ComboboxPrimitive.Input
79 render={<InputGroupInput disabled={disabled} />}
80 {...props}
81 />
82 <InputGroupAddon align="inline-end">
83 {showTrigger && (
84 <InputGroupButton
85 size="icon-xs"
86 variant="ghost"
87 render={<ComboboxTrigger />}
88 data-slot="input-group-button"
89 className="group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent"
90 disabled={disabled}
91 />
92 )}
93 {showClear && <ComboboxClear disabled={disabled} />}
94 </InputGroupAddon>
95 {children}
96 </InputGroup>
97 );
98}
99
100function ComboboxContent({
101 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected