# Revenue Dashboard (Pro)

> A complete billing app with a navbar, ⌘K search, notifications and a collapsible sidebar: MRR, churn and ARPU, revenue by plan, MRR movement, the trial funnel, payment methods, failed payments and renewals, plus Customers, Transactions, Invoices, Plans, Coupons, Retention and Settings views you can search, filter and act in.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Dashboards |
| Live preview | https://uibrik.com/components/revenue-dashboard |
| Writes | 1 files into `components/uibrik/revenue-dashboard/`, plus `components/uibrik/_app/app-kit.tsx`, `components/uibrik/_charts/chart-kit.tsx`, `components/uibrik/_dashboard/dashboard-kit.tsx` |
| Packages | `@number-flow/react`, `@tabler/icons-react`, `motion`, `react-use-measure` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 29, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/revenue-dashboard
```

No license yet? Tell the user Revenue Dashboard is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=revenue-dashboard#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { RevenueDashboard } from "@/components/uibrik/revenue-dashboard/revenue-dashboard";

const plans = [
  { key: "starter", label: "Starter", price: 19 },
  { key: "pro", label: "Pro", price: 49 },
  // …1 more
];

const funnel = [
  { label: "Started trial", value: 1240 },
  { label: "Activated", value: 938 },
  // …2 more
];

const coupons = [
  { code: "LAUNCH30", label: "Launch week", percentOff: 30, duration: "3 months", redemptions: 184, limit: 250, active: true, expires: "Oct 31" },
  { code: "STARTUP50", label: "Startup program", percentOff: 50, duration: "forever", redemptions: 42, limit: 100, active: true },
  // …4 more
];

<RevenueDashboard
  workspace="Northwind"
  defaultView="overview"
  defaultRange="12m"
  currency="USD"
  showFunnel
  showTransactions
  plans={plans}
  funnel={funnel}
  coupons={coupons}
  limit={6}
  onViewChange={(view) => {}}
  onRangeChange={(range) => {}}
  onExport={() => {}}
  onRefund={(transaction) => {}}
  onRetry={(transaction) => {}}
  onInvoice={(invoice, action) => {}}
  onCoupon={(coupon) => {}}
  onPlanChange={(customer, plan) => {}}
  onSignOut={() => {}}
  // months={[{ label: "…", mrr: {}, customers: 0, churnRate: 0 }]}
  // customers={[…]}
  // transactions={[…]}
  // invoices={[…]}
  // user={{ name: "…", email: "…" }}
  // view="overview"
  // range="3m"
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/revenue-dashboard.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `workspace` | `string` | `"Northwind"` | Workspace name in the sidebar and breadcrumbs. |
| `defaultView` | `"overview" \| "customers" \| "transactions" \| "invoices" \| "plans" \| "coupons" \| "retention" \| "settings"` | `"overview"` | View shown first. Use `view` and `onViewChange` to control it. |
| `defaultRange` | `"3m" \| "6m" \| "12m"` | `"12m"` | Months shown in charts first. Use `range` and `onRangeChange` to control it. |
| `currency` | `"USD" \| "EUR" \| "GBP" \| "INR"` | `"USD"` | ISO 4217 code for every amount. |
| `showFunnel` | `boolean` | `true` | Show the trial to paid funnel on the overview. |
| `showTransactions` | `boolean` | `true` | Show recent transactions on the overview. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `plans` | `{ key: string; label: string; price?: number }[]` |  | Plans in stacking order, bottom first. Price is per seat per month. |
| `months` | `{ label: string; mrr: Record<string, number>; customers: number; churnRate: number }[]` |  | One entry per month, oldest first. MRR per plan key; churnRate from 0 to 1. |
| `funnel` | `{ label: string; value: number }[]` |  | Trial steps, first to last. |
| `customers` | `Customer[]` |  | Paying customers: { id, name, email, avatar?, plan, seats, mrr, since, country, health }. Health is healthy, at-risk or churned. |
| `transactions` | `Transaction[]` |  | Payments, newest first: { id, customer, email, avatar?, plan, amount, status, date, time?, method? }. Status is paid, pending, failed or refunded. |
| `invoices` | `Invoice[]` |  | Invoices: { id, customer, email, amount, issued, due, status }. Status is draft, open, paid or overdue; open and overdue rows can be reminded or marked paid. |
| `coupons` | `Coupon[]` |  | Discount codes: { code, label, percentOff, duration, redemptions, limit?, active, expires? }. Each card switches on or off; New coupon adds one. |
| `limit` | `number` | `6` | Rows in the overview's recent transactions. |
| `user` | `{ name: string; email: string; avatar?: string }` |  | Signed-in person in the navbar's account menu. |
| `view` | `"overview" \| "customers" \| "transactions" \| "invoices" \| "plans" \| "coupons" \| "retention" \| "settings"` |  | Current view. Uncontrolled when left out. |
| `onViewChange` | `(view: RevenueView) => void` |  | Called when the sidebar picks a view. |
| `range` | `"3m" \| "6m" \| "12m"` |  | Months shown in charts. Uncontrolled when left out. |
| `onRangeChange` | `(range: RevenueRange) => void` |  | Called when the header's range changes. |
| `onExport` | `() => void` |  | Called by the Export button, after its confirmation toast. |
| `onRefund` | `(transaction: Transaction) => void` |  | Called after a refund is confirmed; the row already shows Refunded. |
| `onRetry` | `(transaction: Transaction) => void` |  | Called after a failed payment is retried; the row already shows Paid. |
| `onInvoice` | `(invoice: Invoice, action: "remind" \| "paid") => void` |  | Called after a reminder is sent or an invoice is marked paid. |
| `onCoupon` | `(coupon: Coupon) => void` |  | Called after a coupon is created or switched on or off. |
| `onPlanChange` | `(customer: Customer, plan: string) => void` |  | Called after a customer moves to another plan. |
| `onSignOut` | `() => void` |  | Called by Sign out in the account menu. Without it, a toast confirms instead. |
| `className` | `string` |  | Classes for the outer element. It fills its parent's height. |

## Where it fits

- **SaaS metrics**: MRR, churn, ARPU and what moved MRR this month give a full subscription overview. Pairs with [KPI Tile](https://uibrik.com/components/kpi-tile.md).
- **Billing back offices**: Search customers, move them between plans, refund a payment or retry a failed one from a detail sheet. Pairs with [Data Table](https://uibrik.com/components/data-table.md) (Pro).
- **Founder reports**: The trial-to-paid funnel, top customers and revenue by country show where growth comes from. Pairs with [Funnel](https://uibrik.com/components/funnel.md) (Pro).

## Same shelf: Dashboards

- [Status Dashboard](https://uibrik.com/components/status-dashboard.md) (Pro): A complete monitoring app with a collapsible icon rail, ⌘K search and notifications: overall health, live latency, errors and traffic, 90-day uptime, requests and response codes, incidents, deploys and on-call, plus Services, Regions, Incidents, Alerts, On-call, Deploys and Settings views.
- [Project Dashboard](https://uibrik.com/components/project-dashboard.md) (Pro): A complete project tracker with a collapsible floating sidebar, ⌘K search, notifications and who's online: cycle burn-up, issues by status and priority, labels, projects, workload and activity, plus Inbox, My issues, Issues, Cycles, Projects, Roadmap, Team and Settings views.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/revenue-dashboard/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
