"use client"; import { InputHTMLAttributes, forwardRef } from "react"; interface InputProps extends InputHTMLAttributes { label?: string; error?: string; } const Input = forwardRef( ({ label, error, className = "", ...props }, ref) => { return (
{label && ( )} { e.currentTarget.style.borderColor = "var(--accent-color)"; }} onBlur={(e) => { e.target.style.borderColor = "var(--border)"; }} {...props} /> {error && (

{error}

)}
); } ); Input.displayName = "Input"; export default Input;