import { forwardRef, type InputHTMLAttributes } from 'react';
import { cn } from '../../lib/utils';
interface InputProps extends InputHTMLAttributes {
label?: string;
error?: string;
hint?: string;
}
export const Input = forwardRef(
({ label, error, hint, className, ...props }, ref) => {
return (
{label &&
}
{error &&
{error}
}
{hint && !error &&
{hint}
}
);
}
);
Input.displayName = 'Input';