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}
  />
);

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