SaaS Revenue Dashboard for React
A SaaS dashboard template for React that tracks MRR, churn and cohort retention in glass charts. Use it as a revenue dashboard for the revenue page of a subscription product, showing MRR, ARR, churn rate and ARPU as rolling numbers with deltas and sparklines.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/analytics-demo-saas.jsonSaaS revenue
last 7 days
SaasRevenueDashboardDeltaBadgeRollingNumberdefaultSaasRevenueLabels- +2 more
Live demo
Twelve months of MRR by default. Turn on Live to watch upgrades land on the latest point; switch regions and every chart, the cohorts and the customer list follow. Sort the customers by MRR, seats, change or tenure.
Acme Cloud
Revenue · Last 12 months
MRR by plan
Monthly recurring revenue, stacked · Last 12 months
- Starter
- Pro
- Business
- Enterprise
Plan mix
Share of MRR
MRR movement
From the start to the end of the range
Retention
Customers still paying, by monthly cohort
Top customers
By monthly recurring revenue
import { SaasRevenueDashboard } from "@/components/sheenui/blocks/analytics-saas";
// Package build (after the first npm release, or a packed tarball): import { SaasRevenueDashboard } from "@sheenui/theme";
import { saasRevenueDemoLoader, saasLiveStep } from "@/components/sheenui/blocks/analytics/demo-saas";
// Package build (after the first npm release, or a packed tarball): import { saasRevenueDemoLoader, saasLiveStep } from "@sheenui/theme/demo-data";
<SaasRevenueDashboard load={saasRevenueDemoLoader} liveStep={saasLiveStep} product="Acme Cloud" currency="USD" />Files to copy
19 folders · 54 files · 4 packages
- From
theme/src/ blocks/{analytics-saas.tsx, analytics-kit.ts, icons.tsx}components/button/components/charts/{chart-export-menu.tsx, chart-export.ts, chart-figure.tsx, chart-fit.tsx, chart-icons.tsx, chart-parts.tsx, chart-patterns.tsx, chart-tip.tsx, chart-utils.ts, cohort-chart.tsx, donut-chart.tsx, heatmap.tsx, percent-bar-chart.tsx, pie-chart.tsx, sparkline.tsx, stacked-area-chart.tsx, waterfall-chart.tsx}components/charts/chart-parts/components/charts/cohort-chart/components/charts/heatmap/components/drawer/parts/sheet.tsxcomponents/kbd/components/menu/components/segmented/components/skeleton/components/spinner/components/status-icons/components/tabs/blocks/analytics/{bar-trend-chart.tsx, data.ts, glass.tsx, hooks.tsx, kpi.tsx, labels.ts, panel.tsx, shell.tsx, stacked-trend-chart.tsx, trend-chart.tsx, trend-frame.tsx}hooks/{use-controllable.ts, use-direction.ts, use-intersection.ts, use-latest.ts, use-magnetic.ts, use-media-query.ts, use-preferences.ts}motion/{beat.ts, gate.ts, tokens.ts}lib/{cn.ts, csv.ts, form.ts, glide-highlight.tsx, heading.ts, initials.ts, math.ts, no-script-reveal.tsx, popup-a11y.ts, popup-motion.ts, state-light.tsx, warn-once.ts}styles/
- shadcn CLI (component only)
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/analytics-saas.jsonRegistry item: analytics-saas. The styles need the Tailwind v4 glass UI setup.- Packages
pnpm add @base-ui/react clsx motion tailwind-merge
Next.js: samples here pass functions (formatters, seriesLegend, a dashboard's load), so put them in a file that starts with "use client".
Euros, German, Europe only
currency and locale format every amount in euros, German style; defaultFilters starts on one region; labels translate every string, including the cohort columns ("Monat 3").
Nordlicht Software
Umsatz · Letzte 90 Tage
MRR nach Tarif
Monatlich wiederkehrender Umsatz, gestapelt · Letzte 90 Tage
- Starter
- Pro
- Business
- Enterprise
Tarifmix
Anteil am MRR
MRR-Bewegung
Vom Anfang bis zum Ende des Zeitraums
Bindung
Zahlende Kunden nach Monatskohorte
Top-Kunden
Nach monatlichem Umsatz
import { SaasRevenueDashboard } from "@/components/sheenui/blocks/analytics-saas";
// Package build (after the first npm release, or a packed tarball): import { SaasRevenueDashboard } from "@sheenui/theme";
import { saasRevenueDemoLoader, saasLiveStep } from "@/components/sheenui/blocks/analytics/demo-saas";
// Package build (after the first npm release, or a packed tarball): import { saasRevenueDemoLoader, saasLiveStep } from "@sheenui/theme/demo-data";
<SaasRevenueDashboard
load={saasRevenueDemoLoader}
liveStep={saasLiveStep}
product="Nordlicht Software"
currency="EUR"
locale="de-DE"
defaultRange="90d"
defaultFilters={["emea"]}
labels={{
metrics: { mrr: "MRR", arr: "ARR", churnRate: "Kündigungsrate", arpu: "ARPU" },
cohortPeriodName: (period, i) => `${period === "month" ? "Monat" : "Woche"} ${i}`,
// … every string is in SaasRevenueLabels
}}
/>Loading, empty and error states
The frame never disappears: skeletons hold every panel's place on the first load, later loads dim the charts under a scan line, and an empty or failed load says so in words (with Retry when the loader threw). Pin a state with status for docs and tests.
Acme Cloud (status demo)
Revenue · Last 12 months
MRR by plan
Monthly recurring revenue, stacked · Last 12 months
- Starter
- Pro
- Business
- Enterprise
Plan mix
Share of MRR
MRR movement
From the start to the end of the range
Retention
Customers still paying, by monthly cohort
Top customers
By monthly recurring revenue
import { SaasRevenueDashboard } from "@/components/sheenui/blocks/analytics-saas";
// Package build (after the first npm release, or a packed tarball): import { SaasRevenueDashboard } from "@sheenui/theme";
import { saasRevenueDemoLoader, saasLiveStep } from "@/components/sheenui/blocks/analytics/demo-saas";
// Package build (after the first npm release, or a packed tarball): import { saasRevenueDemoLoader, saasLiveStep } from "@sheenui/theme/demo-data";
<SaasRevenueDashboard load={saasRevenueDemoLoader} liveStep={saasLiveStep} product="Acme Cloud" status="loading" defaultLive={false} />Data
load is required: SaasRevenueDashboard never invents numbers. Return your own data (or a promise of it) from load. For demos and prototypes use the sample loader and live step from the separate @sheenui/theme/demo-data module:
import { SaasRevenueDashboard } from "@/components/sheenui/blocks/analytics-saas";
// Package build (after the first npm release, or a packed tarball): import { SaasRevenueDashboard } from "@sheenui/theme";
import { saasRevenueDemoLoader, saasLiveStep } from "@/components/sheenui/blocks/analytics/demo-saas";
// Package build (after the first npm release, or a packed tarball): import { saasRevenueDemoLoader, saasLiveStep } from "@sheenui/theme/demo-data";
<SaasRevenueDashboard load={saasRevenueDemoLoader} liveStep={saasLiveStep} />With the shadcn CLI the sample data is its own optional item, which also installs the dashboard (the “with demo data” command at the top of this page): npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/analytics-demo-saas.json. The “component only” command under Files to copy leaves the sample data out, which is what a production build wants.
Props
SaasRevenueLabels keys and English defaults (49)
SaasRevenueData
DeltaBadge props
AnalyticsLabels keys and English defaults (2)
RollingNumber props
Keyboard
Accessibility
- KPI deltas read in words and know which way is good: a falling churn rate is good news (green, “Down 9.9%”), a falling ARPU is not.
- The waterfall labels every step with its signed value and shows increases and decreases with different shapes and colors; its table lists each step and the running total.
- The cohort grid is navigable cell by cell with the arrow keys and has a % / users switch; cohorts that haven't reached a period read “not yet”, never 0%.
- The customers table is a real table with sortable column buttons (aria-sort). On narrow screens the plan and start date fold under the name, so MRR and change stay visible without scrolling.
- Reduced motion: values and charts jump, no draw-ins; the busy scan line becomes a still bar.
Performance
- Charts below the fold mount when they come within 320px of the viewport; their frame is reserved first, so nothing shifts.
- New data lands in a React transition, one panel per frame: visible panels ripple in order, panels off-screen catch up in idle time or when you scroll to them.
- Controls answer instantly (optimistic state) while the dashboard re-renders in the background, so a click never blocks the next frame.
- Loading dims the panels through a data attribute (CSS only): starting or finishing a load re-renders no chart.
- Glass budget: the header, the KPI strip and at most two panels per row blur what's behind them; controls inside the header don't add their own blur. Phones get a lighter blur.
- Live updates, the realtime stream and every pulse stop while the dashboard is off-screen or the tab is hidden. Only transform and opacity animate.
All exports on this page
DeltaBadge— "▲ 12.4%" on a status tint: the arrow and the sign carry the direction, colour only supports it.RollingNumber— Odometer number for dashboards that update all the time: each digit is ONE element (a 0–9 column) moved by a CSS transform transition.SaasRevenueDashboard— Props (see SaasRevenueDashboardProps): product ("Acme Cloud"), currency ("USD"), ranges (7d, 30d, 90d, 12m).defaultSaasRevenueLabels— The English SaasRevenueLabels used when labels is omitted; a partial labels prop is merged over them.
When to use the SaaS revenue dashboard
- Use it for the finance or growth screen of a subscription product, where MRR, ARR, churn rate and ARPU roll up as headline numbers with deltas and a sparkline beside each.
- Use it for investor updates or an internal finance review, where MRR stacked by plan, the plan mix donut, an MRR movement waterfall and retention cohorts explain why revenue changed.
- Use currency, locale and labels to render a non-US dashboard, for example amounts in euros formatted German style with translated cohort columns.
- Skip it when you need traffic or conversion data: WebAnalyticsDashboard covers visitors and sources, and EcommerceDashboard covers orders and checkout, so use this one only for subscription metrics.
- Pair it with DonutChart and WaterfallChart for custom panels, SegmentedControl for switching views, and AnalyticsShell with AnalyticsPanel when you adapt the layout.
Frequently asked questions
Related pages
Guides that cover it
5 dashboards pages in all: browse them on All dashboards.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .