Skip to content
Design System
GitHub

Stats

Headline numbers with their change, under any active alarms.

Overview

When to use

  • Under the alarms at the top of an overview page.
  • A row of KPIs above a table or a chart.

Use something else

  • One number in context of time: a Charts block with a sparkline.
  • A whole overview screen: Solutions › Fleet operations.

Blocks

KPI cards

Four headline numbers with change and sparkline. Trend colour follows whether the change is good, not its direction.

Install
npx shadcn add @syncrobotic/stats-cards
Built from

Levels

Levels in a fixed range, one per card: a bar for how full, the number for exactly, colour only past a line.

Install
npx shadcn add @syncrobotic/stats-meters
Built from

KPIs with a range

A KPI row that follows a site and a time range chosen above it, each change compared with the period before.

Install
npx shadcn add @syncrobotic/stats-filtered

Usage rules

  • Four numbers at most in a row.
  • Only a change for the worse gets colour (decided by whether it is bad, not by its direction); good news stays neutral.
  • Every number has a unit and a time range.