Delete
"idle"Ready to delete.
Async workflows
DeleteStateIconShows the lifecycle of a delete action.
Ready to delete.
"idle"Ready to delete.
"deleting"animatedDeleting is in progress.
"deleted"Deleted successfully.
"error"The delete 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 { DeleteStateIcon } from "@stateglyph/react";
<DeleteStateIcon state="idle" decorative />