Revenue Dashboard
ProInstallation
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.
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…
Props
RevenueDashboard- title
- Type string
- "Revenue"
- Page heading.
- description
- Type string
- "Recurring revenue, conversion and payments."
- One line under the heading.
- currency
- Type "USD" | "EUR" | "GBP" | "INR"
- "USD"
- ISO 4217 code for every amount.
- showFunnel
- Type boolean
- true
- Show the trial to paid funnel beside revenue by plan.
- showTransactions
- Type boolean
- true
- Show the recent transactions table.
- plans
- Type { key: string; label: string }[]
- –
- Plans in stacking order, bottom first.
- 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.
- transactions
- Type Transaction[]
- –
- Payments, newest first: { id, customer, email, avatar?, plan, amount, status, date, time?, method? }. Rows open a detail sheet with a refund action. Status is paid, pending, failed or refunded.
- limit
- Type number
- 6
- Rows in the recent transactions table. View all lists every transaction in a sheet.
- 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.
- className
- Type string
- –
- Classes for the outer element.