import styles from '../styles/modules/Input.module.css'; interface InputProps extends React.HTMLAttributes { label: string; type?: string; helperText?: string; containerClassName?: string; step?: number | string; name?: string; value?: string | number; labelClassName?: string; onChange?: (e: React.FormEvent) => void; } const TextInput = ({ label, id, type = 'text', placeholder, helperText, containerClassName, step, name, value, onChange, labelClassName = 'bg-black', className, }: InputProps) => { return (
{helperText && (

{helperText}

)}
); }; export default TextInput;