---
title: "EmptyState"
description: "Three variants. Always one next action."
canonical: "https://lopifi.com/components/empty-state"
---

# EmptyState

> Three variants. Always one next action.

Source: https://lopifi.com/components/empty-state
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Family:** System & states — ---
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/system-states

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/empty-state
```

## Specification

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](https://lopifi.com/md/docs/foundations/imagery-and-isometric).

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
