Async workflows

Send

SendStateIcon

Shows the progress and result of sending content.

States

4 total

Send

Ready to send.

Send

"idle"

Ready to send.

Sending

"sending"animated

Sending is in progress.

Sent

"sent"

Sent successfully.

Send failed

"error"

The send action failed.

Implementation

Pass your current state.

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.

Source
Lucide
License
ISC
States
idle · sending · sent · error
example.tsx
import { SendStateIcon } from "@stateglyph/react";
<SendStateIcon state="idle" decorative />