Deploy
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
'use client'
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
import { forwardRef } from "react"
|
||||
|
||||
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
||||
error?: boolean
|
||||
}
|
||||
|
||||
const Input = forwardRef<HTMLInputElement, InputProps>(
|
||||
({ className, error, ...props }, ref) => {
|
||||
return (
|
||||
<input
|
||||
ref={ref}
|
||||
className={cn(
|
||||
"flex h-10 w-full rounded-md border bg-white px-3 py-2 text-sm text-[#1f2b33] placeholder:text-[#36454F]/50 focus:outline-none focus:border-[#d4af37] focus:ring-1 focus:ring-[#d4af37] disabled:cursor-not-allowed disabled:opacity-50",
|
||||
error ? "border-red-500" : "border-[#d4dadd]",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
Input.displayName = "Input"
|
||||
|
||||
export default Input
|
||||
Reference in New Issue
Block a user