StatusPill
Payment and reconciliation states.
npx shadcn add @lopifi/status-pillExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Payment lifecycle
The happy path from draft to settled, each step an icon and a word so the state survives grayscale.
Exceptions
Failed, returned, canceled and overdue are the states someone has to act on, and none of them is a spinner.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
<StatusPill status="pending" /> // ◷ Pending amber, subtle bg
<StatusPill status="settled" /> // ✓ Settled positive
<StatusPill status="failed" /> // ✕ Failed negative
<StatusPill status="reconciled" />
<StatusPill status="needs-review" />
*-subtle background, * text, never a saturated fill. Always icon plus text; an icon alone isn't a status. Accessible name includes the entity: "Payment pending".
State change: 140ms crossfade with a 2px blur mask, so the pill morphs instead of swapping.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Primitives
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section StatusPill renders in, the calculators behind its figures, and the ledger payloads that feed it.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Primitives changes
Your copy doesn’t update itself when we fix something here.
- One email when a Primitives component needs a migration
- Nothing when nothing changes
Or install it now