import type { ComponentProps } from "react"; import { clsx } from "clsx"; /** Eingabefeld mit Beschriftung (#004). Mindesthoehe 44 px wie alle Klickflaechen. */ export function Feld({ beschriftung, hinweis, mono = false, className, id, name, ...rest }: ComponentProps<"input"> & { beschriftung: string; hinweis?: string; mono?: boolean }) { const feldId = id ?? `feld-${name}`; return (
{hinweis &&

{hinweis}

}
); } /** Fehlermeldung eines Formulars – mit role=alert, damit Screenreader sie vorlesen. */ export function Formularfehler({ text }: { text?: string }) { if (!text) return null; return (

{text}

); }