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

{error}

}
); }