Live Dashboard
A payments dashboard animates its stats, chart and recent activity feed. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/live-dashboardUsage
// 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={380}
fps={60}
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
| Prop | Type | Default |
|---|---|---|
| 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.
Default
DEFAULT_SERIES - changenumber
Change vs. yesterday for the headline, in percent.
Default
15.1 - metricsDashboardMetric[]
KPI cards with label, value, format, change and optional sparkline.
Default
DEFAULT_METRICS - liveDashboardTick[]
Payments that land one by one during the live phase.
Default
DEFAULT_LIVE - paymentsDashboardTick[]
Earlier payments already in the activity feed.
Default
DEFAULT_PAYMENTS - visitorsnumber
Visitors-now count shown on the dashboard.
Default
128 - 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.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - 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.