noahgdev

Ring KPI Card

Dashboards

About

A row of KPI tiles where each value sits next to a small segmented ring showing progress or share, with a comparison to the previous value beneath. Good for targets and quotas.

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

Code

How Ring KPI Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { EllipsisVertical } from "lucide-react"

import { Button } from "@/components/ui/button"
import { RingKpiCard } from "@/components/ui/dashboardcn-ring-kpi-card"

const menu = (
  <Button variant="ghost" size="icon-xs" className="text-muted-foreground -mr-1.5">
    <EllipsisVertical />
    <span className="sr-only">More</span>
  </Button>
)

export default function RingKpiCardDemo() {
  return (
    <RingKpiCard
      className="w-full"
      metrics={[
        { label: "API response time", value: 132, previous: 148, unit: "ms", max: 200, invertDelta: true, action: menu },
        { label: "Error rate", value: 1.4, previous: 0.9, unit: "%", max: 5, invertDelta: true, action: menu },
        { label: "Request throughput", value: 4300, previous: 3900, format: "compact", unit: "req/s", max: 5000, action: menu },
      ]}
    />
  )
}

Dependencies

More by noahgdev

View all
  • Donut Chart

    Donut Chart

    5
  • Funnel Chart

    Funnel Chart

    3
  • Heatmap Chart

    Heatmap Chart

    3
  • Sankey Chart

    Sankey Chart

    1
  • Segmented Meter

    Segmented Meter

    1
  • Revenue Ring Card

    Revenue Ring Card

  • Payment Summary Card

    Payment Summary Card

  • Commerce KPI Row

    Commerce KPI Row

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    751
  • Analytics Dashboard

    Analytics Dashboard

    81
  • Creator Dashboard

    Creator Dashboard

    216
  • Insights Dashboard

    Insights Dashboard

    44
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    446
  • serf dashboard

    serf dashboard

    144
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    65