import type { InputHTMLAttributes } from 'react' type InputProps = InputHTMLAttributes & { label?: string error?: string required?: boolean } export function Input({ label, error, required, className = '', id, ...props }: InputProps) { const inputId = id || label?.toLowerCase().replace(/\s+/g, '-') return (
{label && ( )} {error &&

{error}

}
) }