import type { InputHTMLAttributes } from "react"; interface InputProps extends InputHTMLAttributes { label?: string; helperText?: string; error?: string; } export const Input = ({ label, helperText, error, className, id, ...rest }: InputProps) => { const inputId = id ?? (label ? `input-${label.toLowerCase().replace(/\s+/g, "-")}` : undefined); const errorId = inputId ? `${inputId}-error` : undefined; const helperId = inputId ? `${inputId}-helper` : undefined; return ( ); };