SuperdindaDocs
Backoffice

KpiTile

A headline number (Figma "Backoffice / KPI Tile" 2056:48793): 220 × 122 card, or "In strip" (borderless, no radius) inside a divided stat strip.

States Default (with Delta None, Positive, Negative, Stable), Empty, Loading, Definition. The delta is an arrow plus a word, never colour alone. Width follows the grid it sits in.

<KpiTile label="Contas ativas" value="24" hint="12 em trial" delta={{ tone: "positive", label: "12%" }} />

Playground

Um preset por valor do primeiro eixo do Figma. Mude as props; dsState força hover, foco ou pressionado, como na matriz.

Backoffice / KPI Tile

string
boolean

Variantes, tamanhos e estados

Cada célula é o componente real, marcada com a variante do Figma que reproduz (passe o mouse pra ver o node).

Delta · None

SurfaceDefaultEmptyLoadingDefinition
Card
Contas ativas
24
12 em trial
Contas ativas
—
Sem base ainda
Contas ativas
Contas ativas
24
12 em trial

Delta · Positive

SurfaceDefaultEmptyLoadingDefinition
Card
Contas ativas
2412%
12 em trial

Delta · Negative

SurfaceDefaultEmptyLoadingDefinition
Card
Contas ativas
248%
12 em trial

Delta · Stable

SurfaceDefaultEmptyLoadingDefinition
Card
Contas ativas
24estável
12 em trial

Props

As props que o arquivo do DS declara. O componente também repassa as do primitivo (base-ui), quando ele tem um.

PropTipoPadrãoDescrição
string—"Contas ativas".
ReactNode—The number, already formatted ("24", "US$ 2,17"). Ignored when empty or loading.
ReactNode—Figma "hint" (showHint): one line under the number, "12 em trial". When empty, the line that says why there is no number ("Sem base ainda").
KpiDelta—Figma "Delta" axis (only in the Default state).
"default" | "empty" | "loading""default"Figma State: Empty shows "—" (never a made-up zero); Loading shows bars in place and sets aria-busy.
"card" | "in-strip" | null"card"
string—Figma "showInfo" + State=Definition: what the number counts, behind an info button next to the label.
string—Name of the info button, e.g. "O que conta Contas ativas". Required with `definition`.
boolean—The definition tooltip's open state (base-ui naming).
boolean—
((open: boolean) => void)—
string—

On this page