Dashboard
BlockAn overview page with headline metrics and a recent activity feed.
- Dashboards
- 4 components
- 1 file
Loading the example…
pnpm dlx @dowel-ui/cli add dashboardimport { DashboardBlock } from "@/components/blocks/dashboard";<DashboardBlock>
| Prop | Type | Default |
|---|---|---|
stats (required) | DashboardStat[] | — |
actionsAnything to put beside the heading — a date range picker, an action. | ReactNode | — |
description | string | "How things are going." |
events | DashboardEvent[] | [] |
loadingRenders placeholders instead of content. | boolean | false |
title | string | "Overview" |
className | string | — |
Each metric states its change in words — "up 12.4%" — rather than by a coloured arrow, which is unreadable to a screen reader and ambiguous to anyone who cannot distinguish the colours. Whether a rise is good is configurable, since churn going up is not. The metrics sit in a named region so they can be jumped to.