EmptyState
Three variants. Always one next action.
npx shadcn add @lopifi/empty-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.
Three variants, and each one is really its own component:
| Variant | Illustration | Content |
|---|---|---|
first-run |
Isometric spot, 64px, left of the copy | "No transactions yet" + explanation + one primary action |
filtered |
None | "No transactions match these filters" + "Clear filters" |
period |
None | "No transactions between 1–30 Sep 2026" + "Widen the period" |
An illustration on the filtered variant is condescending. The user knows what happened and wants the fix.
Always exactly one next action. An empty state with no action is a dead end.
description is one line, because an empty state is read at a glance. The particulars (which three filters are active, what the import does before anything posts) go in detail, behind the ⓘ on the title.
Illustration entrance: back-to-front, 60ms stagger, 8px translate, 320ms --ease-out, total capped at 480ms, never loops. Spec.
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 EmptyState renders in, the calculators behind its figures, and the ledger payloads that feed it.
- EmptyState, runningThe system showcase — live, with theme, density, grayscale and reduced-motion switches.
- 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