Save
"idle"Ready to save.
Async workflows
SaveStateIconShows whether a change is saving, saved, or failed.
Ready to save.
"idle"Ready to save.
"saving"animatedSaving is in progress.
"saved"Saved successfully.
"error"The save 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 { SaveStateIcon } from "@stateglyph/react";
<SaveStateIcon state="idle" decorative />