import React, { forwardRef } from 'react'; interface InputProps extends React.InputHTMLAttributes { label?: string; error?: string; className?: string; fullWidth?: boolean; icon?: React.ReactNode; } const Input = forwardRef( ({ label, error, className = '', fullWidth = true, icon, ...props }, ref) => { return (
{label && ( )}
{icon && (
{icon}
)}
{error &&

{error}

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