Shadcn KPI Cards Blocks

KPI card components built with shadcn/ui that measure a metric against a target, a limit or a trend. These cards combine values with meters, sparklines, segmented bars, scores and progress, ready for admin panels, SaaS dashboards and analytics pages.

KPI Card 1 Free

Four KPI strip inside one divided card with an icon label, large value, colored up or down change and a vs last month note for recurring revenue, subscribers, renewals and revenue per user.

KPI Card 2 Free

Four plan usage cards for storage, bandwidth, databases and collaborators, each with a used of limit value, a percentage, a tick meter that turns amber or red as usage climbs, a short note and a chevron link.

KPI Card 3 Pro

Hiring pipeline card with a five stage segmented bar that shows candidate counts on hover, followed by a stage list with candidate and role counts, small progress bars and share percentages.

KPI Card 4 Pro

Compact plan revenue card with a large total, a monthly change and an annual versus monthly split shown as a two part bar with a dot legend and percentages.

KPI Card 5 Pro

Cluster capacity card with allocated vCPU, a change figure, a capacity progress bar, an actions menu and a divided top workloads list with icons, regions and core counts.

KPI Card 6 Pro

Support desk KPI row with a status badge and four mini visuals: a 30 day queue histogram with a peak highlight, an SLA tick scale with a target marker, a satisfaction area sparkline and an escalation share bar with a legend.

KPI Card 7 Pro

Security posture score card with a percentage, a status badge, a tick meter, a short scoring note, passed, warning and failing counts and a next best fix button with its score gain.

KPI Card 8 Pro

Live storefront card with a pulsing live badge, a shoppers per minute bar strip, a two by two grid of live metrics, a spike watch alert with a review link and a recent activity feed.

KPI Card 9 Pro

Customer health board with five selectable segment cards built on a toggle group, each with an action badge, customer count, share bar, retention and lifetime value.

KPI Card 10 Pro

Four stat cells in one divided card with an icon, info tooltip, value, weekly change and a small bar chart whose latest bar turns green or red with the trend.

KPI Card 11 Pro

Booking health card with a divided row of four metrics: gross bookings and nights booked with growth, repeat guest revenue with a share percentage and progress bar, and a dispute rate with a warning icon.

KPI Card 12 Pro

Four workspace cards for seat usage with a tick meter, members online with an avatar group, pending invites with a progress meter and a two-factor card with a switch that updates its badge.

KPI Card 13 Pro

Ad spend return card with a period select that updates a divided strip of impressions, clicks and click rate totals and a revenue by platform list with icons, progress bars and dollar values.

KPI Card 14 Pro

Revenue by region card with a four part share bar that shows tooltips on hover and a divided grid of region cards with revenue, growth, customer count and average deal size.

KPI Card 15 Pro

Signups card with a weekly or monthly select, a total with growth, a source share bar, a dotted leader list of sources and cost, activation and rate metrics with colored trends, plus a report button.

About Shadcn UI KPI Cards Blocks

A KPI card shows a key performance indicator together with the yardstick it is judged by: a target, a plan limit, a score or the recent trend. These 16 shadcn KPI card blocks turn that comparison into a visual, using meters, sparklines, segmented bars, scores and progress bars next to the value.

Every card is built with React, TypeScript and Tailwind CSS on top of shadcn ui components such as Card, Badge, Progress, Item, Toggle Group, Select, Switch, Tooltip and Chart. The sample data covers subscriptions, hiring, cloud infrastructure, support, security, e-commerce, publishing, travel and marketing.

Key Elements of a KPI Card

  • Value and unit: one number formatted with its currency, percentage or unit.
  • Yardstick: a limit, target, score or previous period that gives the number meaning.
  • Visual cue: a tick meter, sparkline, histogram or share bar that shows how close the value is to the yardstick.
  • Status: a badge or color that says whether the value needs attention.
  • Next step: a link, button or menu that leads to the details.

Layouts in This Collection

Related Blocks

  • Stat Cards: simpler metric cards with change badges and charts.
  • Charts: full size charts to place below a KPI row.
  • Dashboard Shell: a sidebar and header layout to hold the cards.

Accessibility

Tick meters in KPI Card 2, KPI Card 7 and KPI Card 12 use role="meter" with aria-valuenow and a label. Icon only buttons, selects and the segment toggle group carry aria-labels, and the selectable segments in KPI Card 9 are toggle items that work with the keyboard. Changes are shown with a sign or an arrow next to the color, so they do not rely on color alone.

Shadcn KPI Cards Blocks for AI Agents

Unlike plain stat tiles, these 16 cards each focus on one operational question, such as plan usage against limits, hiring pipeline stages, cluster capacity, support queue health, security posture, live storefront traffic or bookings by type. An agent can pick the card whose visual fits the metric, like a tick meter, segmented bar or mini histogram, and compute its values from your data.

Install it with an AI agent

Claude Code, Cursor, Codex and other agents can install these with the shadcn CLI, for example npx shadcn@latest add @shadcnuikit/kpi-card1. With the Shadcn UI Kit MCP server, your agent can search every variant by name and add the right one for you. To give it full context, share /blocks/dashboard-ui/kpi-cards.md, the Markdown version of this page with every variant and install command.

Example prompts

  • “Add KPI Card 2 to billing settings and show storage, bandwidth, databases and collaborators used against plan limits from our API.”
  • “Use KPI Card 6 on the support dashboard with the 30 day queue histogram built from our ticket counts.”
  • “Put KPI Card 13 on the ads page so the period select refetches impressions, clicks and return on spend.”

Customize it with AI

Values in these cards are hardcoded, so ask the agent to pull them into a typed props object and calculate percentages and change figures in one place. Up and down colours should follow whether a rise is good for that metric, which is easy to get wrong for things like churn or response time. Keep the tooltips on segmented bars, because they carry the exact counts.

KPI Cards FAQ

A stat card shows a number and how it changed. A KPI card measures that number against something: a target, a plan limit, a score or a recent trend. That is why most KPI cards here include a meter, a target marker, a share bar or a sparkline next to the value.

Yes. KPI Card 1, the four metric strip in one divided card, and KPI Card 2, the plan usage cards with tick meters, are free. Install them with npx shadcn@latest add @shadcnuikit/kpi-card1 or kpi-card2. The other 14 KPI cards are part of All Access.

KPI Card 2 tracks storage, bandwidth, databases and seats with meters that turn amber at 70 percent and red at 90 percent. KPI Card 5 shows cluster capacity, KPI Card 7 a security score and KPI Card 12 seat usage and pending invites.

KPI Card 9 uses a toggle group so users can select a customer segment. KPI Card 13 and KPI Card 15 have a period select that updates every value, and KPI Card 12 has a switch that changes its two-factor badge. Segmented bars in KPI Card 3 and KPI Card 14 show tooltips on hover.

Every card uses theme tokens such as bg-primary, bg-chart-3, text-success, bg-warning and text-destructive, so they follow the variables in your globals.css in light and dark mode. Change those variables to restyle all cards at once.
shadcn kpi cards blocks
Unlock Premium Blocks & Sections
Premium blocks are part of All Access. One license unlocks the whole Shadcn UI Kit, so you can build complete pages and products instead of single sections.
  • 650+ blocks for landing pages, stores, dashboards and apps
  • 16 admin dashboards and 17 ready-made apps
  • 5 premium Next.js website templates
  • 560+ component variants and 70+ examples
  • Install with the shadcn CLI or from your AI editor through the MCP server
  • Lifetime updates, including every new block we release
Unlock Now

One-time payment, no subscription.