ButtonSubmit

Form submission button with loading states and success feedback.

Usage

<ButtonSubmit
text="Save"
workingText="Saving..."
showSuccessAlert={false}
successButtonText="Saved"
successButtonResetDelayMs={3000}
form="[data-form]"
endpoint="/api/save"
/>

Props

PropTypeDescription
textstringButton text
workingTextstringText shown while submitting
showSuccessAlertbooleanShow success alert
successButtonTextstringText after successful submit
successButtonResetDelayMsnumberDelay before resetting button
formstringForm selector
endpointstringAPI endpoint for submission