werkbank
    Preparing search index...

    Function SubmitButton

    • A submit button that automatically shows a loading state when the parent form is submitting.

      Parameters

      Returns Element

      A Button component configured for form submission.

      This component uses useFormStatus to detect the pending state of the form. It passes the loading prop to the underlying Button component.

      <Form schema={schema} onSubmit={handleSubmit}>
      <SubmitButton>Save Changes</SubmitButton>
      </Form >