Leaderboard Climb

A launch leaderboard where the highlighted row climbs the table to a top rank. A free, MIT-licensed Remotion product scene.

Installation
$ pnpm dlx shadcn@latest add @remocn/leaderboard-climb

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { LeaderboardClimb } from "@/components/remocn/leaderboard-climb";
 
const LeaderboardClimbScene = () => (
  <LeaderboardClimb
    title="Top launches"
    toRank={3}
    self={{ name: "remocn", tagline: "Launch videos from code", from: 598, to: 1284 }}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="LeaderboardClimb"
    component={LeaderboardClimbScene}
    durationInFrames={240}
    fps={60}
    width={1280}
    height={720}
  />
);

A leaderboard panel lists up to eight products, then the highlighted row starts at the bottom and climbs past them one by one while its score counts up. It lands on a rank-up badge. Pass your own entries, self (name, tagline, start and end score) and toRank. It ships dark and light 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.

Props19

PropTypeDefault
theme
"dark" | "light""dark"

Dark or light panel styling.

accent
string"#3B5BFD"

Accent color for the highlighted row.

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"Onest"

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

logo
React.ReactNode—

Replaces the remocn mark.

title
string"Top launches"

Panel title in the header.

subtitle
string"Today · Launch league"

Small line under the panel title.

productLabel
string"PRODUCT"

Column header over the product names.

scoreLabel
string"UPVOTES"

Column header over the scores.

gainLabel
string"today"

Word after the climb count on your row's badge.

entries
LeaderboardEntry[]—

Competing rows with name, tagline and score; the first eight are used.

self
{ name: string; tagline: string; from: number; to: number }—

Your row: name, tagline, and the scores it climbs from and to.

toRank
number3

Rank the highlighted row ends on, counting from 1.

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.

ground
GshPresetId—

Gradient shader preset id for the background.

groundParams
Partial<GradientParams>—

Overrides for the shader preset parameters.

  • theme"dark" | "light"

    Dark or light panel styling.

    Default"dark"

  • accentstring

    Accent color for the highlighted row.

    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"Onest"

  • logoReact.ReactNode

    Replaces the remocn mark.

  • titlestring

    Panel title in the header.

    Default"Top launches"

  • subtitlestring

    Small line under the panel title.

    Default"Today · Launch league"

  • productLabelstring

    Column header over the product names.

    Default"PRODUCT"

  • scoreLabelstring

    Column header over the scores.

    Default"UPVOTES"

  • gainLabelstring

    Word after the climb count on your row's badge.

    Default"today"

  • entriesLeaderboardEntry[]

    Competing rows with name, tagline and score; the first eight are used.

  • self{ name: string; tagline: string; from: number; to: number }

    Your row: name, tagline, and the scores it climbs from and to.

  • toRanknumber

    Rank the highlighted row ends on, counting from 1.

    Default3

  • 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

  • groundGshPresetId

    Gradient shader preset id for the background.

  • groundParamsPartial<GradientParams>

    Overrides for the shader preset parameters.