10 lines
320 B
TypeScript
10 lines
320 B
TypeScript
import { forwardRef, type InputHTMLAttributes } from "react";
|
|
import { cn } from "../lib/cn";
|
|
|
|
export const Input = forwardRef<HTMLInputElement, InputHTMLAttributes<HTMLInputElement>>(function Input(
|
|
{ className, ...props },
|
|
ref
|
|
) {
|
|
return <input ref={ref} className={cn("ui-input", className)} {...props} />;
|
|
});
|