import { InputHTMLAttributes, forwardRef } from 'react' interface InputProps extends InputHTMLAttributes { label?: string error?: string hint?: string } export const Input = forwardRef( ({ label, error, hint, className = '', ...props }, ref) => (
{label && } {hint && !error &&

{hint}

} {error &&

{error}

}
) )