+ {
+ if (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") {
+ e.preventDefault()
+ setOpen(true)
+ }
+ }}
+ className={cn(
+ "flex h-9 w-full cursor-pointer items-center gap-1.5 rounded-md border border-input bg-transparent px-3 text-sm shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30",
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive",
+ "aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
+ open && "border-ring ring-[3px] ring-ring/50",
+ className,
+ )}
+ >
+ {value || placeholder}
+ {value && !disabled && (
+
+ )}
+
+
+
+