function SubmitButton
SubmitButton(unnamed 0: SubmitButtonProps): React.JSX.Element

Renders a submit button that is disabled while the form submits, so that a second click can't post twice. It reads the form's state, so it must sit under a react-hook-form FormProvider.

Parameters

Return Type

React.JSX.Element

Usage

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