Renders the submit button of the forms built with useApiForm, which shows the submit in progress.
useApiForm
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.
FormProvider
Passed to SubmitButton by a form, usually inside FormActions.
FormActions
Names an icon-only button, such as "✓".
Replaces the btn-primary class.
btn-primary
Disables the button, which is disabled while submitting anyway.
Replaces the label while the form is submitting, such as "Saving…".
import * as mod from "src/components/form/SubmitButton.tsx";