Refresh
"idle"Ready to refresh.
Async workflows
RefreshStateIconShows the progress and result of refreshing content.
Ready to refresh.
"idle"Ready to refresh.
"refreshing"animatedRefreshing is in progress.
"complete"Refresh complete successfully.
"error"The refresh 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 { RefreshStateIcon } from "@stateglyph/react";
<RefreshStateIcon state="idle" decorative />