Dashboard stats
Workspace home header with four KPI tiles whose numbers count up, deltas roll and inline sparklines morph when you toggle 7d/30d or refresh.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { DashboardStats } from '@/components/component-kit/items/block-dashboard-stats';
export function Example() { return <DashboardStats name="Alex" workspace="Acme" />;}Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | "Alex" | First name shown in the greeting. |
workspace | string | "Acme" | Workspace name in the subtitle. |
stats | DashboardStat[] | 4 demo tiles | Tiles to render: id, label, icon (users | revenue | latency | conversion), format (number | currency | ms | percent), values and 24-point series per period, optional goodWhen. |
defaultPeriod | "7d" | "30d" | "7d" | Initially selected period. |
onPeriodChange | (period: StatPeriod) => void | undefined | Called when the period toggle changes. |
compact | boolean | false | Two tiles and smaller type for the index card. |
autoPlay | boolean | false | Flip the period every 2.4s once mounted; for inert previews. |