This commit is contained in:
Vula Builder
2026-07-26 17:41:21 +00:00
parent 540dc2ed03
commit a0b3dcef82
+21
View File
@@ -0,0 +1,21 @@
'use client'
import { cn } from "@/lib/utils"
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
error?: boolean
}
export default function Input({ className, error, ...props }: InputProps) {
return (
<input
className={cn(
"flex h-10 w-full rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary transition-colors",
error && "border-red-500 focus:border-red-500",
className
)}
aria-invalid={error ? "true" : undefined}
{...props}
/>
)
}