MRR Movement
1 variantA monthly MRR bridge chart that explains how revenue moved, with the customers behind each movement.
MRR bridge
Starting MRR moves through new, expansion, reactivation, contraction, and churn to ending MRR. Bars reveal in sequence and glide between months, each bar opens a tooltip, and a list shows the customers behind each movement.
MRR movement
Ending MRR
Atlas MutualEnterprise+$3,200
Fernhill SchoolsBusiness+$1,490
Pilot LogisticsBusiness+$1,290
Kindred VetTeam+$790
- Net new MRR
- +$13.2k
- Quick ratio
- 3.4x
- Customers churned
- 13
"use client";
import { MrrMovement } from "@/components/premium/mrr-movement";
export function MrrMovementBridgePreview() {
return (
<div className="w-full px-4 py-10">
<MrrMovement />
</div>
);
}
Source code is locked
Get access to install premium components and view the full source.
Open dashboardInstall
API Reference
Every prop is optional unless marked required. Data, copy, and colors default to the sample content.
MrrMovement14 props
monthsMonths to pick from, oldest first.
MrrMonth[]monthIdControlled month id.
stringdefaultMonthIdMonth id when uncontrolled. Defaults to the latest month.
stringonMonthChangeCalled with a month id when one is picked.
((id: string) => void)movementControlled movement whose customers are listed.
"new" | "expansion" | "reactivation" | "contraction" | "churn"defaultMovementMovement listed first when uncontrolled.
"new" | "expansion" | "reactivation" | "contraction" | "churn"Default
newonMovementChangeCalled when a movement is chosen from the chart or tabs.
((kind: MrrMovementKind) => void)maxRowsMost customer rows shown at once.
numberDefault
4colorsColors per movement; any movement left out keeps its default.
Partial<Record<MrrMovementKind, MrrMovementColors>>totalColorFill class for the starting and ending bars.
stringDefault
bg-foreground/15formatCurrencyFormats full amounts, such as $74,720.
((value: number) => string)formatCompactFormats compact amounts on the chart and footer, such as $12.4k.
((value: number) => string)labelsCopy overrides; anything left out uses the English defaults.
Partial<MrrMovementLabels>classNameClasses merged onto the card.
string
CustomerRow9 props
customerRequiredThe customer to draw.
MrrCustomershareRequiredBar width as a share of the largest row, 0 to 1.
numberdelayRequiredEntrance delay in seconds; 0 for rows that arrive after the list opens.
numberreduceRequiredSkip movement, keep fades.
booleanbarClassNameRequiredTinted fill behind the row, such as `bg-emerald-500/12`.
stringamountClassNameRequiredAmount text color, such as `text-emerald-700`.
stringcanceledLabelRequiredPlan shown after the arrow for churned customers.
stringformatCurrencyRequiredFormats the amount, such as $1,490.
(value: number) => stringrefThe row element, so AnimatePresence can pop exiting rows out of the flow.
Ref<HTMLLIElement>
MovementCustomers10 props
kindsRequiredMovements offered as tabs, in order.
MrrMovementKind[]selectedRequiredSelected movement.
"new" | "expansion" | "reactivation" | "contraction" | "churn"onSelectRequiredCalled when a movement tab is chosen.
(kind: MrrMovementKind) => voidmovementRequiredThe selected movement's data, if the month has it.
MrrMovement | undefinedlistKeyRequiredChanges whenever the month or movement changes, to replay the row cascade.
stringmaxRowsRequiredMost rows shown at once.
numbercolorsRequiredColors for each movement.
Record<MrrMovementKind, MrrMovementColors>formatCurrencyRequiredFormats row amounts, such as $1,490.
(value: number) => stringreduceRequiredSkip movement, keep fades.
booleanlabelsRequiredCopy for tabs, captions, and the empty state.
MrrMovementLabels
MrrBridge9 props
monthRequiredMonth to chart.
MrrMonthkindsRequiredMovements shown, in order.
MrrMovementKind[]selectedRequiredMovement whose customers are listed; its axis label stays highlighted.
"new" | "expansion" | "reactivation" | "contraction" | "churn"onSelectRequiredCalled when a movement bar is clicked or chosen with the keyboard.
(kind: MrrMovementKind) => voidcolorsRequiredColors for each movement.
Record<MrrMovementKind, MrrMovementColors>totalColorRequiredFill class for the starting and ending bars.
stringformatCurrencyRequiredFormats full amounts in the tooltip, such as $61,510.
(value: number) => stringformatCompactRequiredFormats compact amounts on the axis and labels, such as $12.4k.
(value: number) => stringlabelsRequiredCopy for bar names and tooltip captions.
MrrMovementLabels
MrrFooter5 props
netRequiredNet new MRR for the month, signed.
numberquickRatioRequiredGains over losses: (new + expansion + reactivation) / (contraction + churn).
numberchurnedRequiredCustomers lost to churn.
numberformatCompactRequiredFormats net new MRR, such as $9.3k.
(value: number) => stringlabelsRequiredCopy for the three captions.
MrrMovementLabels
MrrHeader7 props
monthsRequiredMonths in the picker, oldest first.
MrrMonth[]monthIdRequiredId of the month shown.
stringonMonthChangeRequiredCalled with a month id when one is picked.
(id: string) => voidstartingRequiredMRR at the start of the month.
numberendingRequiredMRR at the end of the month.
numberformatCurrencyRequiredFormats the ending MRR, such as $74,720.
(value: number) => stringlabelsRequiredCopy for the title, picker, and captions.
MrrMovementLabels
Types5 types
The object types these props take, field by field.
MrrMonth4 fields
idRequiredUnique key for the month.
stringlabelRequiredMonth name in the picker, such as "Nov 2026".
stringstartingMrrRequiredMRR on the first day of the month.
numbermovementsRequiredMovements in the month. Kinds left out, or with an amount of 0, are hidden.
Partial<Record<MrrMovementKind, MrrMovement>>
MrrMovementLabels18 fields
titleRequiredCard title.
stringmonthRequiredAccessible name for the month picker.
stringendingMrrRequiredCaption under the ending MRR.
stringvsStartRequiredText after the change pill.
stringstartingRequiredFirst bar of the chart.
stringendingRequiredLast bar of the chart.
stringchartRequiredAccessible name for the chart.
stringtabsRequiredAccessible name for the movement tabs.
stringamountRequiredHeader over the customer amounts.
stringcustomersRequiredTooltip caption for the customer count.
stringshareRequiredTooltip caption for the share of starting MRR.
stringshowingRequiredCaption above the customer rows, followed by the shown and total counts.
stringnetNewRequiredFooter caption for net new MRR.
stringquickRatioRequiredFooter caption for the quick ratio.
stringchurnedRequiredFooter caption for churned customers.
stringcanceledRequiredPlan shown for churned customers.
stringemptyRequiredShown when a movement has no customers.
stringkindsRequiredName for each movement kind.
Record<MrrMovementKind, string>
MrrMovementColors3 fields
barRequiredFill for the bar and the legend dot, such as `bg-emerald-500`.
stringrowRequiredTinted fill behind customer rows, such as `bg-emerald-500/12`.
stringtextRequiredAmount text color for customer rows.
string
MrrMovement3 fields
amountRequiredSigned MRR change for the month: positive for gains, negative for losses.
numbercustomersRequiredNumber of customers behind the change.
numbertopRequiredLargest customers behind the change, shown under the chart.
MrrCustomer[]
MrrCustomer6 fields
idRequiredUnique key for the row.
stringcompanyRequiredCompany name.
stringavatarRequiredPortrait URL of the account owner, shown as a round avatar.
stringfromPlanPlan before the change; leave out for new customers.
stringtoPlanPlan after the change; leave out for churned customers.
stringamountRequiredSigned MRR change from this customer, such as 640 or -399.
number