// src/components/ui/Input.tsx import React from 'react'; import { clsx } from 'clsx'; interface InputProps extends React.InputHTMLAttributes { label?: string; error?: string; helperText?: string; } const Input: React.FC = ({ label, error, helperText, className, id, ...props }) => { const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`; return (
{label && ( )} {error && (

{error}

)} {helperText && !error && (

{helperText}

)}
); }; export default Input;