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.
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.mdThe index of every part is at /llms.txt.
More in Metrics
Metrics replayRewind a whole dashboard with one scrubber. Every tile rolls to the value at that moment, lines draw solid up to the playhead and dashed after it, and what happened (a deploy, an alert, a rollback) lists as the playhead passes it.View composerDescribe a view and watch it assemble. Reasoning steps appear as they finish, placeholders hold the layout, then each tile fills in. A follow-up reshapes what is there instead of starting over: tiles that stay glide to their new place and their figures run to the new values.Metrics dashboardA connected strip of KPIs; choose one to see the period against the one before and its target.