Send
"idle"Ready to send.
Async workflows
SendStateIconShows the progress and result of sending content.
Ready to send.
"idle"Ready to send.
"sending"animatedSending is in progress.
"sent"Sent successfully.
"error"The send 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 { SendStateIcon } from "@stateglyph/react";
<SendStateIcon state="idle" decorative />