Submit
"idle"Ready to submit.
Form states
SubmitStateIconShows the progress and result of a form submission.
Ready to submit.
"idle"Ready to submit.
"submitting"animatedSubmitting is in progress.
"success"Submission complete successfully.
"error"The submit action failed.
Implementation
The component stays presentational. Your application remains in control of async work and business logic. The state prop is a TypeScript string literal union — pass an invalid state and you'll get a type error at build time.
import { SubmitStateIcon } from "@stateglyph/react";
<SubmitStateIcon state="idle" decorative />