Async workflows

Install

InstallStateIcon

Shows the lifecycle of installing a package or application.

States

4 total

Install

Ready to install.

Install

"idle"

Ready to install.

Installing

"installing"animated

Installing is in progress.

Installed

"installed"

Installed successfully.

Install failed

"error"

The install 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 · installing · installed · error
example.tsx
import { InstallStateIcon } from "@stateglyph/react";
<InstallStateIcon state="idle" decorative />