Skip to content
Browse library
BIU UI/Components/Stat Card
COMPONENTSPro

Stat Card

Explore the Stat Card component and try its interactive examples.

INTERACTIVE PREVIEW

Preview

Loading preview…
GET STARTED

Installation

BIU UI ProEarly Access · Coming Soon
Stat Card source is part of BIU UI Pro

The interactive preview and API reference are open to try right here. Full single-file TSX source and @biudev-pro/stat-card shadcn Registry installs are reserved for BIU UI Pro. Meanwhile, all 41 core components and 2 starter blocks are free and open source under MIT.

npx shadcn@latest add @biudev-pro/stat-card

Usage

Start with this example, then adjust the import path for your project.

EXAMPLE / TSX
import { StatCard } from "@/components/ui/biu/stat-card";

export function Example() {
  return (
    <StatCard
      label="Monthly recurring revenue"
      value="$48,920"
      delta="+14.2%"
      trend="up"
      caption="vs last 30 days"
      sparkline={[38200, 41900, 43400, 47200, 48920]}
    />
  );
}

Examples

Try each example or switch to its code.

API reference

Properties and defaults from the component source. An asterisk marks a required property; a dash means no explicit default.

SparklineProps

StatTrend

Also accepts properties from 'up' & 'down' & 'flat'.

Some properties depend on the variant; consult the source for the full union.

StatDeltaTone

Also accepts properties from 'positive' & 'negative' & 'neutral'.

Some properties depend on the variant; consult the source for the full union.

StatCardProps

Source

BIU UI ProEarly Access · Coming Soon
Stat Card source is part of BIU UI Pro

The interactive preview and API reference are open to try right here. Full single-file TSX source and @biudev-pro/stat-card shadcn Registry installs are reserved for BIU UI Pro. Meanwhile, all 41 core components and 2 starter blocks are free and open source under MIT.

npx shadcn@latest add @biudev-pro/stat-card