Payment
"idle"Ready to payment.
Commerce
PaymentStateIconShows a payment moving through processing and completion.
Ready to payment.
"idle"Ready to payment.
"processing"animatedProcessing payment is in progress.
"success"Payment complete successfully.
"error"The payment 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 { PaymentStateIcon } from "@stateglyph/react";
<PaymentStateIcon state="idle" decorative />