noahgdev

Metric List

Dashboards

About

Compact rows of label, sparkline, value, and delta, for listing several metrics in the space of one card. It uses the same formatting and delta conventions as the KPI card.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Metric List to your project and fits it to your theme.

Code

How Metric List is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { MetricList } from "@/components/ui/dashboardcn-metric-list"

const items = [
  { label: "Orders", value: 2_865, delta: 0.18, trend: [12, 14, 13, 18, 22, 21, 26] },
  { label: "Response time", value: "135 ms", delta: 0.14, invertDelta: true, trend: [140, 130, 128, 135, 150, 142, 135] },
  { label: "Revenue", value: 8_670, format: "currency" as const, delta: 0.15, trend: [5, 6, 6.5, 6, 7.2, 8.1, 8.6] },
  { label: "Users", value: 1_425, delta: 0.15, trend: [900, 950, 1_010, 1_100, 1_180, 1_320, 1_425] },
  { label: "Refunds", value: 42, delta: -0.06, invertDelta: true, trend: [50, 48, 51, 46, 44, 45, 42] },
]

export default function MetricListDemo() {
  return (
    <div className="w-full max-w-md">
      <MetricList items={items} />
    </div>
  )
}

Dependencies

More by noahgdev

View all
  • Sankey Chart

    Sankey Chart

  • Scatter Chart

    Scatter Chart

  • Radar Chart

    Radar Chart

  • Donut Chart

    Donut Chart

  • Composed Chart

    Composed Chart

  • Bar Chart

    Bar Chart

  • Funnel Chart

    Funnel Chart

  • Activity Heatmap

    Activity Heatmap

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    659
  • Analytics Dashboard

    Analytics Dashboard

    59
  • Creator Dashboard

    Creator Dashboard

    208
  • Insights Dashboard

    Insights Dashboard

    35
  • serf dashboard

    serf dashboard

    137
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    293
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Business/Sales Dashboard

    Business/Sales Dashboard

    1.5K