Integrated ResearchPicasso
Components

Kpi tile

One headline number, with just enough around it to say what it is and whether it is a problem.

{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}

One headline number, with just enough around it to say what it is and whether it is a problem.

Import

import { KpiTile } from "@ir/ui";

Watch out

  • It is NOT a Card, though it looks like one: Card has border/neutral/muted and shadow/xs, this has border/neutral/subtle and no shadow. A tile sits in a grid of its peers, so it is quieter than a card that stands alone. Faithful to the file — don't "fix" it to match Card.
  • Status does three things at once, which is Figma's design: it names the badge, colours the badge dot, and colours the meter. The badge is the part that matters — the file's description says it exists "so status never relies on colour alone", which is why the word is not optional when a status is set.

Props

PropTypeRequiredWhat it does
labelReact.ReactNodeyesWhat the number is. heading/sm, muted — the number is the loud part.
valueReact.ReactNodeyesThe headline number. metric/xl.
unitReact.ReactNodeSits after the value in body/md — "/ 5", "ms", "%".
statusKpiStatusnone is the plain KPI. The rest add a badge and a meter.
statusLabelstringOverride the badge wording — the tone's own word is the default.
showStatusBadgebooleanHide the badge. Figma's Show status badge; think before using it.
meter{ value: number; max?: number }Lights the meter. Omit it and no meter is drawn.
actionReact.ReactNodeTop-right control — a menu, usually.
comparisonReact.ReactNodeSits under the number: a comparison badge, a delta, a sparkline.
footerReact.ReactNodeAnything below — a progress bar, a footer link.

Do and don't

One number per tile, or use a Card if they belong together.

Don't — Put two or three numbers in one tile.

The tile's whole layout is built to make one figure the loudest thing on it. A second number halves that and neither reads at a glance.

Name the measure and its scope — "Network MOS", "Endpoints online".

Don't — Label a tile "MOS" and leave the reader to work out whose.

A dashboard is read in one pass. A label that needs the surrounding page to make sense fails the moment the tile is seen on its own.

Use status where there is a threshold and a response.

Don't — Set a status on a tile nobody would act on.

A status badge is a claim that something needs attention. On a number that is merely interesting it trains people to ignore the badge everywhere.

Put "4.0" in the value and "/ 5" in the unit.

Don't — Write "4.0 / 5" as the value.

The value is set in the metric face at 30px and the unit in body at 14px. Rolling them together makes the qualifier as loud as the figure.

Use status unknown and an em dash for the value.

Don't — Show 0 when a probe has stopped reporting.

Zero is a measurement. A tile showing 0 for a dead probe is stating something false, and someone will act on it.

Use them in a row or grid of peers, at equal width.

Don't — Mix tile widths, or drop one tile into a page on its own.

The quiet border and missing shadow are tuned for a set. A single tile on a page reads as an unfinished card.

Accessibility

  • The meter is aria-hidden decoration. The number and the status badge are the accessible content — which is why the badge's word is not optional, and why status never relies on the meter's colour alone.
  • The label is a <div>, not a heading. A grid of tiles that should appear in the page outline needs headings supplied around them.

Where it is drawn

Figma — structure from figma, measurements from figma.

Open in Storybook

On this page