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 },
]}
/>
)
}
















