Progress Heartbeat

Progress Heartbeat is a copy-paste React component that stops killed a job that was still running before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/progress-heartbeat
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsKilled a job that was still running

Was this component page useful?

How do I install Progress Heartbeat?

pnpm dlx shadcn@latest add @bollard/progress-heartbeat

The files land in your project. They're yours to edit.

How do I use Progress Heartbeat in React?

progress-heartbeat-usage.tsx
import { ProgressHeartbeat } from "@/components/ui/progress-heartbeat"

<ProgressHeartbeat
  label="Exporting 12,480 rows to CSV"
  value={job.value}
  done={job.done}
  startedAt={job.startedAt}
  lastProgressAt={job.lastProgressAt}
  onRetry={retry}
  onCancel={() => setJob((j) => ({ ...j, cancelled: true }))}
/>

What input mistakes does Progress Heartbeat catch?

  • No heartbeat for stallAfter seconds
  • Alive but not advancing
  • Jumpy countdowns: a widening time-left range instead
  • 100% shown before the job finishes: held at 99%

What props does Progress Heartbeat accept?

ProgressHeartbeat props
PropTypeDefault
label* (required)

What is running, e.g. "Exporting 12,480 rows".

string—
value* (required)

Work done so far, 0 to `max`.

number—
max

Total work.

number100
done

True only once the operation has really finished; the bar never shows 100% before.

booleanfalse
heartbeat

Change this whenever the job proves it's alive without advancing (a ping, a log line).

number | string—
lastProgressAt

When the job last advanced (ms), e.g. from the server after a reload.

number—
startedAt

When the job started (ms). Enables "Done in 3m 12s"; without it the component can't know.

number—
stallAfter

Seconds without any heartbeat before the job counts as stalled.

number30
onRetry

Shows a Retry action while stalled.

() => void—
onCancel

Shows a Cancel action while stalled.

() => void—
stalledText

Templates: `{since}` and `{eta}` are filled in.

string"No progress for {since}"
slowText

Shown when the job is alive but not advancing.

string"Still working · no progress for {since}"
estimatingText

Shown while there's too little data for a time-left range.

string"Estimating time left…"
finishingText

Shown while holding at 99%.

string"Finishing up…"
doneText

Shown when the job reports done.

string"Done"
retryLabel

Retry button text.

string"Retry"
cancelLabel

Cancel button text.

string"Cancel"

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Progress Heartbeat accessible?

  • role=progressbar with min, max, now and aria-valuetext including the status
  • Status is text with icons aria-hidden
  • Bar motion is reduced under reduced motion

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Needs heartbeat and progress timestamps from your job
  • Time-left range is an estimate from recent samples
  • Retry and cancel are your callbacks

What expensive mistakes does Progress Heartbeat stop?

Killed a job that was still running

Also known as

progress bar · loading · job status · upload · export · stalled · heartbeat · eta

Field type

What dependencies does Progress Heartbeat require?

Progress Heartbeat facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameProgress Heartbeat
Registry identifier@bollard/progress-heartbeat
Install commandnpx shadcn@latest add @bollard/progress-heartbeat
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Progress Heartbeat

What form validation mistake does Progress Heartbeat catch?

Progress Heartbeat prevents killed a job that was still running. Tells a working job from a stalled one using its heartbeat, so nobody waits on a dead job or kills a live one. Catches: No heartbeat for stallAfter seconds, Alive but not advancing, Jumpy countdowns: a widening time-left range instead, 100% shown before the job finishes: held at 99%. Limitation: validate progress-heartbeat schemas on backend.

How do I install progress-heartbeat with shadcn?

Run `npx shadcn@latest add @bollard/progress-heartbeat`. Sources added: registry/default/progress-heartbeat/progress-heartbeat.tsx. Package requirements: lucide-react.

What props customize Progress Heartbeat?

Progress Heartbeat accepts `label`, `value`, `max`, `done`, `heartbeat`. Configures progress bar, loading, job status behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of progress-heartbeat?

Needs heartbeat and progress timestamps from your job. Time-left range is an estimate from recent samples. Retry and cancel are your callbacks Server requirement: backend verification for progress-heartbeat.

How does Progress Heartbeat meet accessibility guidelines?

role=progressbar with min, max, now and aria-valuetext including the status. Status is text with icons aria-hidden. Bar motion is reduced under reduced motion. Minimizes errors: progress bar stuck at 99, is it frozen or working.

Which components pair with Progress Heartbeat?