Download
"idle"Ready to download.
Async workflows
DownloadStateIconShows the current state of a file download.
Ready to download.
"idle"Ready to download.
"loading"animatedDownloading is in progress.
"success"Download complete successfully.
"error"The download 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 { DownloadStateIcon } from "@stateglyph/react";
<DownloadStateIcon state="idle" decorative />