Skip to content
caliper ui pro docs

Dashboard screen

The day at a glance: one sentence written from the data, figures with their comparison, a marked chart and what waits on you.

Pro
Today

Thursday, 9 October

Updated 2 minutes ago · compared with last Thursday

Revenue is up 4.2% on last Thursday, mostly from the Team plan. Two invoices failed overnight and one deploy is waiting for your approval.

Revenue
$18,240
up +4.2%
New trials
38
up +6
Churned
2
up +1
Failed payments
2
$1,248 at risk

Revenue by hour

dashed: last time
  • 05:00 Team plan price change shipped
Revenue by hour
TimeThis periodLast time
00:00$120$110
01:00$180$150
02:00$260$230
03:00$410$360
04:00$520$470
05:00$760$640
06:00$940$800
07:00$1,180$980
08:00$1,460$1,220
09:00$1,720$1,410

Needs you 5

  • FailedLumen Labs · $624Card declined · retry in 2 days
  • FailedKestrel Bio · $624Card expired
  • WaitingDeploy to productionAgent asks to approve
  • ExpiringHalden Works · Visa 4408Card expires 31 Oct · renews 1 Nov
  • ReviewSeat request from Ines Carvalho4 seats for the Porto office
State

When to use

  • The first screen after sign-in.
  • People need to know what changed and what to do about it.

When not to use

  • Exploratory analytics; use the chart and table components.
  • More than six figures; pick the ones people act on.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/dashboard-screen

Adds its 9 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

DashboardScreen

14 props
PropTypeDefaultDescription
title *string—
descriptionstring—
periodstring—
periodsreadonly string[]["Day", "Week", "Month"]
onPeriodChange((period: string) => void)—
summary *ReactNode—One sentence; wrap the key change in <em>.
kpis *readonly DashboardKpi[]—
chart *DashboardChart—
needs *readonly DashboardNeed[]—
state"loading" | "error" | "ready""ready"
errorstring—
onRetry(() => void)—
childrenReactNode—More panels under the chart and the list, for example recent activity.
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes img and alert semantics, with aria-hidden, aria-label, aria-busy and aria-live kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/dashboard-screen.md

The index of every part is at /llms.txt.

More in Metrics