Kpi Row

A responsive row of KPI tiles, up to four across, each with a label, a large value and an up or down delta. Drop it at the top of a SaaS analytics dashboard.

src/registry/ui/kpi-row.tsx/r/kpi-row.json

Installation#

bash
npx shadcn@latest add @minidev/kpi-row

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/kpi-row.json

Usage#

tsx
import { KpiRow } from "@/components/ui/kpi-row"

export function Example() {
  return (
    <KpiRow className="w-full" items={[
      { label: "MRR", value: "$48.2k", delta: "+12% vs last month" },
      { label: "Active users", value: "12,480", delta: "+3.1%" },
      { label: "Churn", value: "2.4%", delta: "-0.2%" },
      { label: "NPS", value: "62", delta: "+4" },
    ]} />
  )
}

API reference#

KpiRow props
PropTypeDefault
itemsKpi[][ { label: "MRR", value: "$48k", delt...
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All dashboard components

Learn more