ErrorState
With the financial reassurance sentence.
npx shadcn add @lopifi/error-stateExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
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.
Couldn't load transactions. ⓘ ← the technical account, one press away
No transactions were affected. ← the financial reassurance
[Try again] [Contact support]
The reassurance is the most important line, and the only prose that stays on screen. In a financial product, an error makes people worry about their money. Saying plainly that nothing happened to it is worth more than the retry button or a paragraph about the outage.
The detail (which endpoint, which timeout, which missing rate) belongs to whoever asks for it, so it rides an InfoTip on the title instead of a third paragraph. It's an InfoTip, not a Tooltip, because it opens on press and works on touch.
Variants: network · permission · not-found · server · stale-data. Each says what happened, what it means for the user's money, and what to do next.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in System & states
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section ErrorState renders in, the calculators behind its figures, and the ledger payloads that feed it.
- ErrorState, runningThe system showcase — live, with theme, density, grayscale and reduced-motion switches.
- Writes, concurrency and rate limitsWhat happens when you write, and how fast can you go?
- System & statesEmpty, error, loading, stale and confirm states. They decide whether a product feels finished. Specs for 9 React components: EmptyState, ErrorState, Skeleton, StaleIndicator and 5 more.
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 System & states changes
Your copy doesn’t update itself when we fix something here.
- One email when a System & states component needs a migration
- Nothing when nothing changes
Or install it now