login form created

This commit is contained in:
2026-03-18 19:14:08 -05:00
parent e025d0f5cc
commit 6b8d7b53d0
20 changed files with 800 additions and 73 deletions

View File

@@ -0,0 +1,18 @@
import type { AnyFieldMeta } from "@tanstack/react-form";
type FieldErrorsProps = {
meta: AnyFieldMeta;
};
export const FieldErrors = ({ meta }: FieldErrorsProps) => {
if (!meta.isTouched) return null;
return meta.errors.map((error) => (
<p
key={`${error.message}-${error.code ?? "err"}`}
className="text-sm font-medium text-destructive"
>
{error.message}
</p>
));
};