blob: b84e489f727b5f2cb0dad3ec15a0964f399d6807 [file] [log] [blame]
giod0026612025-05-08 13:00:36 +00001import * as React from "react";
gio5f2f1002025-03-20 18:38:48 +04002
giod0026612025-05-08 13:00:36 +00003import { cn } from "@/lib/utils";
gio5f2f1002025-03-20 18:38:48 +04004
giod0026612025-05-08 13:00:36 +00005export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
gio5f2f1002025-03-20 18:38:48 +04006
giod0026612025-05-08 13:00:36 +00007const Input = React.forwardRef<HTMLInputElement, InputProps>(({ className, type, ...props }, ref) => {
8 return (
9 <input
10 type={type}
11 className={cn(
12 "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
13 className,
14 )}
15 ref={ref}
16 {...props}
17 />
18 );
19});
20Input.displayName = "Input";
gio5f2f1002025-03-20 18:38:48 +040021
giod0026612025-05-08 13:00:36 +000022export { Input };