File size: 337 Bytes
ea775bd | 1 2 3 4 5 6 7 8 9 10 11 | import type { InputHTMLAttributes } from "react";
import { cn } from "../../lib/cn";
type InputProps = InputHTMLAttributes<HTMLInputElement> & {
invalid?: boolean;
};
export function Input({ className, invalid, ...props }: InputProps) {
return <input className={cn("input", invalid && "input-invalid", className)} {...props} />;
}
|