Command Palette

Search for a command to run...

Polar/Polar Revenue Card

Polar Revenue Card

MRR/ARR metric card with trend sparkline and percentage change indicator.

Open in v0Open in

MRR

$12.4K

+11.2%vs last period

ARR

$149.4K

+11.2%vs last period

New Customers

847

-8.2%vs last period

Churn Rate

2.4

-22.6%vs last period

Overview

Display revenue metrics with beautiful sparkline trends. Shows MRR, ARR, or custom metrics with percentage change indicators.

Installation

npx shadcn@latest add "https://elements.crfrst.dev/r/polar-revenue-card"

Usage

import { PolarRevenueCard } from "@/components/elements/polar-revenue-card";

export function Dashboard() {
  return (
    <PolarRevenueCard
      value={12450}
      previousValue={11200}
      interval="mrr"
      trend={[8200, 9100, 9800, 10500, 11200, 12450]}
    />
  );
}

Props

PropTypeDefaultDescription
titlestringAuto from intervalCard title
valuenumber-Current value
previousValuenumber-Previous period value
currencystring"$"Currency symbol
interval"mrr" | "arr" | "total""mrr"Metric type
trendnumber[]-Sparkline data points
showChangebooleantrueShow percentage change
size"sm" | "md" | "lg""md"Card size

Features

  • Automatic value formatting (K, M)
  • Percentage change with trending icons
  • SVG sparkline visualization
  • Green/red trend coloring
  • Multiple size variants
  • Custom metric support