Live Dashboard

A payments dashboard animates its stats, chart and recent activity feed. A free, MIT-licensed Remotion product scene.

Installation
$ pnpm dlx shadcn@latest add @remocn/live-dashboard

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { LiveDashboard } from "@/components/remocn/live-dashboard";
 
const LiveDashboardScene = () => (
  <LiveDashboard workspace="Kitebase" change={15.1} theme="light" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="LiveDashboard"
    component={LiveDashboardScene}
    durationInFrames={190}
    fps={30}
    width={1280}
    height={720}
  />
);

A dashboard window opens, the headline total counts up while the cumulative chart draws and KPI cards fill in. Three live payments then land one by one, extending the chart and pushing rows into the activity feed. Pass your own workspace, series, metrics and live payments. It ships light and dark through the theme prop.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props22

PropTypeDefault
title
string"Today"

Page title in the dashboard header.

workspace
string"Kitebase"

Workspace name shown in the header.

series
number[]DEFAULT_SERIES

Cumulative gross volume through now; the last value is the headline number.

change
number15.1

Change vs. yesterday for the headline, in percent.

metrics
DashboardMetric[]DEFAULT_METRICS

KPI cards with label, value, format, change and optional sparkline.

live
DashboardTick[]DEFAULT_LIVE

Payments that land one by one during the live phase.

payments
DashboardTick[]DEFAULT_PAYMENTS

Earlier payments already in the activity feed.

visitors
number128

Visitors-now count shown on the dashboard.

currency
string"USD"

ISO currency code used to format money values.

volumeLabel
string"Gross volume"

Label over the headline number.

feedTitle
string"Payments"

Heading of the payments feed.

visitorsLabel
string"on site"

Words after the live visitor count.

accent
string"#3B5BFD"

Accent color for the chart and highlights.

ink
string—

Text color; overrides the theme ink.

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

fontFamily
string"Geist"

Typeface for the copy. Load the font in your project first.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

speed
number1

Playback speed multiplier for the whole timeline.

theme
"light" | "dark""light"

Light or dark window styling.

ground
GshPresetId—

Gradient shader preset id for the background.

groundParams
Partial<GradientParams>—

Overrides for the shader preset parameters.

  • titlestring

    Page title in the dashboard header.

    Default"Today"

  • workspacestring

    Workspace name shown in the header.

    Default"Kitebase"

  • seriesnumber[]

    Cumulative gross volume through now; the last value is the headline number.

    DefaultDEFAULT_SERIES

  • changenumber

    Change vs. yesterday for the headline, in percent.

    Default15.1

  • metricsDashboardMetric[]

    KPI cards with label, value, format, change and optional sparkline.

    DefaultDEFAULT_METRICS

  • liveDashboardTick[]

    Payments that land one by one during the live phase.

    DefaultDEFAULT_LIVE

  • paymentsDashboardTick[]

    Earlier payments already in the activity feed.

    DefaultDEFAULT_PAYMENTS

  • visitorsnumber

    Visitors-now count shown on the dashboard.

    Default128

  • currencystring

    ISO currency code used to format money values.

    Default"USD"

  • volumeLabelstring

    Label over the headline number.

    Default"Gross volume"

  • feedTitlestring

    Heading of the payments feed.

    Default"Payments"

  • visitorsLabelstring

    Words after the live visitor count.

    Default"on site"

  • accentstring

    Accent color for the chart and highlights.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Geist"

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1

  • theme"light" | "dark"

    Light or dark window styling.

    Default"light"

  • groundGshPresetId

    Gradient shader preset id for the background.

  • groundParamsPartial<GradientParams>

    Overrides for the shader preset parameters.