Updated
Revenue Dashboard
ProCustomize
Overview
12 months
USD
Installation
ProRevenue Dashboard is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Buying? Use the email you'll sign in with. Your license is tied to it.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/revenue-dashboard
Loading your installation…
Usage
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"/>Where to use Revenue Dashboard
SaaS metrics
MRR, churn, ARPU and what moved MRR this month give a full subscription overview.
Pairs with KPI Tile
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
Founder reports
The trial-to-paid funnel, top customers and revenue by country show where growth comes from.
Pairs with Funnel
Props
RevenueDashboard- workspace
- Type string
- "Northwind"
- Workspace name in the sidebar and breadcrumbs.
- defaultView
- Type "overview" | "customers" | "transactions" | "invoices" | "plans" | "coupons" | "retention" | "settings"
- "overview"
- View shown first. Use `view` and `onViewChange` to control it.
- defaultRange
- Type "3m" | "6m" | "12m"
- "12m"
- Months shown in charts first. Use `range` and `onRangeChange` to control it.
- currency
- Type "USD" | "EUR" | "GBP" | "INR"
- "USD"
- ISO 4217 code for every amount.
- showFunnel
- Type boolean
- true
- Show the trial to paid funnel on the overview.
- showTransactions
- Type boolean
- true
- Show recent transactions on the overview.
- plans
- Type { key: string; label: string; price?: number }[]
- –
- Plans in stacking order, bottom first. Price is per seat per month.
- months
- Type { 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
- Type { label: string; value: number }[]
- –
- Trial steps, first to last.
- customers
- Type Customer[]
- –
- Paying customers: { id, name, email, avatar?, plan, seats, mrr, since, country, health }. Health is healthy, at-risk or churned.
- transactions
- Type Transaction[]
- –
- Payments, newest first: { id, customer, email, avatar?, plan, amount, status, date, time?, method? }. Status is paid, pending, failed or refunded.
- invoices
- Type 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
- Type Coupon[]
- –
- Discount codes: { code, label, percentOff, duration, redemptions, limit?, active, expires? }. Each card switches on or off; New coupon adds one.
- limit
- Type number
- 6
- Rows in the overview's recent transactions.
- user
- Type { name: string; email: string; avatar?: string }
- –
- Signed-in person in the navbar's account menu.
- view
- Type "overview" | "customers" | "transactions" | "invoices" | "plans" | "coupons" | "retention" | "settings"
- –
- Current view. Uncontrolled when left out.
- onViewChange
- Type (view: RevenueView) => void
- –
- Called when the sidebar picks a view.
- range
- Type "3m" | "6m" | "12m"
- –
- Months shown in charts. Uncontrolled when left out.
- onRangeChange
- Type (range: RevenueRange) => void
- –
- Called when the header's range changes.
- onExport
- Type () => void
- –
- Called by the Export button, after its confirmation toast.
- onRefund
- Type (transaction: Transaction) => void
- –
- Called after a refund is confirmed; the row already shows Refunded.
- onRetry
- Type (transaction: Transaction) => void
- –
- Called after a failed payment is retried; the row already shows Paid.
- onInvoice
- Type (invoice: Invoice, action: "remind" | "paid") => void
- –
- Called after a reminder is sent or an invoice is marked paid.
- onCoupon
- Type (coupon: Coupon) => void
- –
- Called after a coupon is created or switched on or off.
- onPlanChange
- Type (customer: Customer, plan: string) => void
- –
- Called after a customer moves to another plan.
- onSignOut
- Type () => void
- –
- Called by Sign out in the account menu. Without it, a toast confirms instead.
- className
- Type string
- –
- Classes for the outer element. It fills its parent's height.