← All components
Interaction / component

Task Status Morph

Five original SVG poses, controlled task state and two actual cancellable local word-count examples.

Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • TaskStatusMorph accepts caller requestId and idle/running/success/error/cancelled. The same SVG node morphs and spins only while running; no timer infers success.
  • Complete Inline/Button count actual whitespace-separated words locally in abortable 128-character slices. Start and Retry are explicit; cancellation or a newer request cannot admit an old result.
  • runWordCount supports AbortSignal and validates a 50,000-code-unit maximum. No model/service call, persistence or artificial completion delay is included.
  • Pass onRetry from your own request owner. Replay restarts decoration while keeping the current task, draft and result. Pause/hidden/offscreen/reduced stop continuous frames.
React 19.2Modern browsers

Chungus UI · Original project implementation; no restricted reference recipe or asset.

Props

PropTypeDefaultDescription
requestId (required)stringrequiredFresh caller identity; local samples guard each current request.
state (required)idle | running | success | error | cancelledrequiredAuthoritative caller state; success maps to the check pose.
labelstringstate labelOptional readable status override.
onRetry() => voidundefinedExplicit native Retry for error/cancelled only; decoration never calls it.
headlinestringSmall actions, clear outcomes.Complete context heading.
initialTextstringEvery useful agent starts with a clear task.Complete initial editable text.
pausedbooleanfalseSuspend decoration without changing caller state, retained text, local input or results.
replayTokennumber0Restart decoration while retaining caller state and local work in the new contexts. Legacy Thought/Lattice Demo explicitly restarts its synthetic interaction.