
This component is returned by
useForm()
.When rendered in a dialog, the submit button will not be shown where
you have placed it, but will be plucked out of the dialog contents and placed at the bottom of the
dialog.
One – and only one –
<SubmitButton />
is required as a direct child of <Form />
.Example
form-dialog.tsx
Props
The label of the submit button.
Whether or not the submit button should be disabled.
It will automatically be disabled while the form is being submitted.You do not need to manage that state!