--- interface Props { label?: string; type?: "text" | "password" | "email" | "number"; name: string; id?: string; placeholder?: string; value?: string | number; required?: boolean; error?: string; class?: string; } const { label, type = "text", name, id = name, placeholder = "", value = "", required = false, error, class: className = "", } = Astro.props; ---
{ label && ( ) } {error &&
{error}
}