10 lines
340 B
TypeScript
10 lines
340 B
TypeScript
import { forwardRef, type InputHTMLAttributes } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export const Input = forwardRef<HTMLInputElement, InputHTMLAttributes<HTMLInputElement>>(
|
|
({ className, type, ...props }, ref) => (
|
|
<input ref={ref} type={type} className={cn(className)} {...props} />
|
|
)
|
|
);
|
|
Input.displayName = "Input";
|