import type { InputHTMLAttributes, ReactNode } from 'react';
interface InputProps extends InputHTMLAttributes {
label?: string;
hint?: string;
error?: string;
rightElement?: ReactNode;
}
export function Input({ label, hint, error, rightElement, className = '', ...rest }: InputProps) {
return (
{label &&
}
{rightElement && (
{rightElement}
)}
{hint &&
{hint}
}
{error &&
{error}
}
);
}