function FormError
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.

Parameters

unnamed 0: FormErrorProps

Return Type

React.JSX.Element | null

Usage

import { FormError } from "src/components/form/FormError.tsx";