Dashboard Populate

An empty dashboard fills itself with data in a cascaded spring sequence

Installation

$ pnpm dlx shadcn@latest add @remocn/dashboard-populate

Usage

// src/Root.tsx
import { Composition } from "remotion";
import { DashboardPopulate } from "@/components/remocn/dashboard-populate";

const DashboardPopulateScene = () => (
  <DashboardPopulate accentColor="#22c55e" kpiTarget={128400} />
);

export const RemotionRoot = () => (
  <Composition
    id="DashboardPopulate"
    component={DashboardPopulateScene}
    durationInFrames={180}
    fps={30}
    width={1280}
    height={720}
  />
);

With Backdrop

Renders its scene transparent — supply the background via Backdrop:

import { Backdrop } from "@/components/remocn/backdrop";
import { DashboardPopulate } from "@/components/remocn/dashboard-populate";

<Backdrop fill={{ type: "color", value: "#09090b" }}>
  <DashboardPopulate accentColor="#22c55e" kpiTarget={128400} />
</Backdrop>

Props

PropTypeDefaultDescription
accentColor
string"#22c55e"Color used for bars, line, donut and KPI delta
kpiTarget
number128400Target value the revenue counter animates up to
speed
number1Multiplier applied to the current frame
className
stringOptional className for the outer container