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

{error}

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