Skip to content
roguelite labsAnthony Spezzano ↗
← All work
Web

Components

A source catalog of React and Tailwind interface parts, with downloadable examples.

Try the mechanism

Try a pending action, a failure and a reset before inspecting the hook that handles them.

The example uses synthetic inputs to isolate this behavior. It does not operate the underlying app.

The catalog pairs previews with source distribution. Its asynchronous button hook tracks idle, pending, success and error, blocks duplicate pending actions and ignores obsolete promise results.

Inside the implementation

The Components catalog with interface previews and source browsing
Components catalog capture, 6 September 2026. The React catalog is separate from this site’s CSS studies.
components-catalog/src/components/interior/loading-button.tsx · useAsyncAction excerpts
if (phase.current === "pending") return

// Inside settle: ignore an obsolete or unmounted run.
if (!alive.current || id !== runId.current) return
Read the explanation →

Implementation decisions

Built with

TypeScript · React · Tailwind CSS