Components
- Activity Heatmap
- Activity Rings
- Bar Chart
- Bar List
- Command Palette
- Composed Chart
- Corner Frame
- Data Table
- Delta Badge
- Distribution Bar
- Donut Chart
- Dot Plot
- Funnel Chart
- Heatmap Chart
- KPI Card
- Metric List
- Metric Value
- Period Tabs
- Radar Chart
- Radial Gauge
- Sankey Chart
- Scatter Chart
- Segmented Meter
- Sparkline
- Tick Bar
- Timeline
- Trend Chart
Blocks
- Activity Rings Card
- Allocation Card
- Balance Chart Card
- Breakdown Card
- Commerce KPI Row
- Contributions Card
- Data Table Card
- Distribution Card
- Dot Plot Card
- Dual Metric Card
- Funnel Chart Card
- Goal Chart Card
- Heatmap Chart Card
- Insight Card
- KPI Row Card
- Metric Tabs Chart Card
- Payment Summary Card
- Period Bar Chart Card
- Progress Card
- Revenue Ring Card
- Ring KPI Card
- Score Gauge Card
- Stage Bars Card
- Status Gauge Card
- Tick KPI Card
A card with a period switcher, a row of KPI tiles with sparklines and deltas, and a footer summary.
Catalog health
SKU coverage, replenishment pressure, and aging stock in one pass.
In stock
8,420+5.4%Rising
Out of stock
1,245-12.0%Gaps easing
Pending restock
640+3.1%Moving
Slow movers
1,105+0.6%Stable
12,845 products tracked across categories. 76% currently available in stock.
Show full analyticsimport { AlertTriangle, Boxes, PackageX, Timer } from "lucide-react"
import { KpiRowCard } from "@/registry/dashboardcn/blocks/kpi-row-card"A single card holding a row of KPI tiles, each with a sparkline and delta, plus a period switcher in the header and a summary in the footer. It is the top-of-dashboard block for shadcn/ui, composed from the KPI card, sparkline, and period tabs.
Installation#
pnpm dlx shadcn@latest add @dashboardcn/kpi-row-cardAlso installs card, tabs, tooltip from shadcn/ui if missing.
Usage#
import { KpiRowCard } from "@/components/kpi-row-card"
<KpiRowCard
title="Catalog health"
description="SKU coverage, replenishment pressure, and aging stock."
periods={[
{ value: "week", label: "Week" },
{ value: "month", label: "Month" },
]}
metrics={[
{ label: "In stock", value: 8420, delta: 0.054, note: "Rising", trend: [6, 7, 7.5, 8.4] },
{ label: "Out of stock", value: 1245, delta: -0.12, invertDelta: true, trend: [1.6, 1.5, 1.3, 1.25] },
]}
footer="12,845 products tracked across categories."
action={{ label: "Show full analytics", href: "/analytics" }}
/>Your dashboard, your code.
Every component is copied into your project with the shadcn CLI. No package to upgrade, nothing to override.