MRR Movement

1 variant

A 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

$74,72021.5%vs starting MRR

Ending MRR

Largest accounts 4 / 44MRR
  • 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>
  );
}

Install

$ bunx --bun shadcn add @beui-pro/mrr-movement-bridge

API Reference

Every prop is optional unless marked required. Data, copy, and colors default to the sample content.

MrrMovement14 props
  • months

    Months to pick from, oldest first.

    MrrMonth[]
  • monthId

    Controlled month id.

    string
  • defaultMonthId

    Month id when uncontrolled. Defaults to the latest month.

    string
  • onMonthChange

    Called with a month id when one is picked.

    ((id: string) => void)
  • movement

    Controlled movement whose customers are listed.

    "new" | "expansion" | "reactivation" | "contraction" | "churn"
  • defaultMovement

    Movement listed first when uncontrolled.

    "new" | "expansion" | "reactivation" | "contraction" | "churn"

    Default new

  • onMovementChange

    Called when a movement is chosen from the chart or tabs.

    ((kind: MrrMovementKind) => void)
  • maxRows

    Most customer rows shown at once.

    number

    Default 4

  • colors

    Colors per movement; any movement left out keeps its default.

    Partial<Record<MrrMovementKind, MrrMovementColors>>
  • totalColor

    Fill class for the starting and ending bars.

    string

    Default bg-foreground/15

  • formatCurrency

    Formats full amounts, such as $74,720.

    ((value: number) => string)
  • formatCompact

    Formats compact amounts on the chart and footer, such as $12.4k.

    ((value: number) => string)
  • labels

    Copy overrides; anything left out uses the English defaults.

    Partial<MrrMovementLabels>
  • className

    Classes merged onto the card.

    string
CustomerRow9 props
  • customerRequired

    The customer to draw.

    MrrCustomer
  • shareRequired

    Bar width as a share of the largest row, 0 to 1.

    number
  • delayRequired

    Entrance delay in seconds; 0 for rows that arrive after the list opens.

    number
  • reduceRequired

    Skip movement, keep fades.

    boolean
  • barClassNameRequired

    Tinted fill behind the row, such as `bg-emerald-500/12`.

    string
  • amountClassNameRequired

    Amount text color, such as `text-emerald-700`.

    string
  • canceledLabelRequired

    Plan shown after the arrow for churned customers.

    string
  • formatCurrencyRequired

    Formats the amount, such as $1,490.

    (value: number) => string
  • ref

    The row element, so AnimatePresence can pop exiting rows out of the flow.

    Ref<HTMLLIElement>
MovementCustomers10 props
  • kindsRequired

    Movements offered as tabs, in order.

    MrrMovementKind[]
  • selectedRequired

    Selected movement.

    "new" | "expansion" | "reactivation" | "contraction" | "churn"
  • onSelectRequired

    Called when a movement tab is chosen.

    (kind: MrrMovementKind) => void
  • movementRequired

    The selected movement's data, if the month has it.

    MrrMovement | undefined
  • listKeyRequired

    Changes whenever the month or movement changes, to replay the row cascade.

    string
  • maxRowsRequired

    Most rows shown at once.

    number
  • colorsRequired

    Colors for each movement.

    Record<MrrMovementKind, MrrMovementColors>
  • formatCurrencyRequired

    Formats row amounts, such as $1,490.

    (value: number) => string
  • reduceRequired

    Skip movement, keep fades.

    boolean
  • labelsRequired

    Copy for tabs, captions, and the empty state.

    MrrMovementLabels
MrrBridge9 props
  • monthRequired

    Month to chart.

    MrrMonth
  • kindsRequired

    Movements shown, in order.

    MrrMovementKind[]
  • selectedRequired

    Movement whose customers are listed; its axis label stays highlighted.

    "new" | "expansion" | "reactivation" | "contraction" | "churn"
  • onSelectRequired

    Called when a movement bar is clicked or chosen with the keyboard.

    (kind: MrrMovementKind) => void
  • colorsRequired

    Colors for each movement.

    Record<MrrMovementKind, MrrMovementColors>
  • totalColorRequired

    Fill class for the starting and ending bars.

    string
  • formatCurrencyRequired

    Formats full amounts in the tooltip, such as $61,510.

    (value: number) => string
  • formatCompactRequired

    Formats compact amounts on the axis and labels, such as $12.4k.

    (value: number) => string
  • labelsRequired

    Copy for bar names and tooltip captions.

    MrrMovementLabels
MrrFooter5 props
  • netRequired

    Net new MRR for the month, signed.

    number
  • quickRatioRequired

    Gains over losses: (new + expansion + reactivation) / (contraction + churn).

    number
  • churnedRequired

    Customers lost to churn.

    number
  • formatCompactRequired

    Formats net new MRR, such as $9.3k.

    (value: number) => string
  • labelsRequired

    Copy for the three captions.

    MrrMovementLabels
MrrHeader7 props
  • monthsRequired

    Months in the picker, oldest first.

    MrrMonth[]
  • monthIdRequired

    Id of the month shown.

    string
  • onMonthChangeRequired

    Called with a month id when one is picked.

    (id: string) => void
  • startingRequired

    MRR at the start of the month.

    number
  • endingRequired

    MRR at the end of the month.

    number
  • formatCurrencyRequired

    Formats the ending MRR, such as $74,720.

    (value: number) => string
  • labelsRequired

    Copy for the title, picker, and captions.

    MrrMovementLabels
Types5 types

The object types these props take, field by field.

MrrMonth4 fields
  • idRequired

    Unique key for the month.

    string
  • labelRequired

    Month name in the picker, such as "Nov 2026".

    string
  • startingMrrRequired

    MRR on the first day of the month.

    number
  • movementsRequired

    Movements in the month. Kinds left out, or with an amount of 0, are hidden.

    Partial<Record<MrrMovementKind, MrrMovement>>
MrrMovementLabels18 fields
  • titleRequired

    Card title.

    string
  • monthRequired

    Accessible name for the month picker.

    string
  • endingMrrRequired

    Caption under the ending MRR.

    string
  • vsStartRequired

    Text after the change pill.

    string
  • startingRequired

    First bar of the chart.

    string
  • endingRequired

    Last bar of the chart.

    string
  • chartRequired

    Accessible name for the chart.

    string
  • tabsRequired

    Accessible name for the movement tabs.

    string
  • amountRequired

    Header over the customer amounts.

    string
  • customersRequired

    Tooltip caption for the customer count.

    string
  • shareRequired

    Tooltip caption for the share of starting MRR.

    string
  • showingRequired

    Caption above the customer rows, followed by the shown and total counts.

    string
  • netNewRequired

    Footer caption for net new MRR.

    string
  • quickRatioRequired

    Footer caption for the quick ratio.

    string
  • churnedRequired

    Footer caption for churned customers.

    string
  • canceledRequired

    Plan shown for churned customers.

    string
  • emptyRequired

    Shown when a movement has no customers.

    string
  • kindsRequired

    Name for each movement kind.

    Record<MrrMovementKind, string>
MrrMovementColors3 fields
  • barRequired

    Fill for the bar and the legend dot, such as `bg-emerald-500`.

    string
  • rowRequired

    Tinted fill behind customer rows, such as `bg-emerald-500/12`.

    string
  • textRequired

    Amount text color for customer rows.

    string
MrrMovement3 fields
  • amountRequired

    Signed MRR change for the month: positive for gains, negative for losses.

    number
  • customersRequired

    Number of customers behind the change.

    number
  • topRequired

    Largest customers behind the change, shown under the chart.

    MrrCustomer[]
MrrCustomer6 fields
  • idRequired

    Unique key for the row.

    string
  • companyRequired

    Company name.

    string
  • avatarRequired

    Portrait URL of the account owner, shown as a round avatar.

    string
  • fromPlan

    Plan before the change; leave out for new customers.

    string
  • toPlan

    Plan after the change; leave out for churned customers.

    string
  • amountRequired

    Signed MRR change from this customer, such as 640 or -399.

    number