Renders the error of a failed submit, for the forms built with
useApiForm.
f
FormError(unnamed 0: FormErrorProps): React.JSX.Element | null
Renders the form's root error as an ErrorCard, or nothing without
one. useApiForm's submit sets that error when the request fails. It must
sit under a react-hook-form FormProvider.
I
FormErrorProps
Passed to FormError by a form, to say what failed.
-
title: string
Replaces the "Something went wrong" title.
Usage
import * as mod from "src/components/form/FormError.tsx";