---
title: "Figure"
description: "A large display numeral with automatic size step-down."
canonical: "https://lopifi.com/components/figure"
---

# Figure

> A large display numeral with automatic size step-down.

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

---

- **Family:** Primitives — The layer everything else composes. Build these first; nothing above them is right until they are.
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/primitives

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/figure
```

## Specification

> A large display numeral. The only place a figure may leave the figure face.

```tsx
<Figure value={{ amount: 24819024, currency: "USD" }} size="hero" family="display" />
```

**The step-down:** at `hero` (40px), a value exceeding a character threshold steps to `lg` (28px), then `md` (20px). A **container query on character count** drives it, not `clamp()`, so the value always lands on a type-scale token rather than between two.

**The display gate:** `family="display"` is only valid when the component is provably solitary. In `KpiRow`, where figures align across cards, the prop is ignored and the figure face is forced. The parent enforces this; don't trust the caller.

**Never truncates.** Escalation ladder in [numerics](https://lopifi.com/md/docs/foundations/numerics#overflow).

## 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.
