Pricing Reveal

A pricing table highlights the Pro plan and strikes the old price for the new one. A free, MIT-licensed Remotion product scene.

Installation
$ pnpm dlx shadcn@latest add @remocn/pricing-reveal

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PricingReveal } from "@/components/remocn/pricing-reveal";
 
const PricingRevealScene = () => <PricingReveal heading="Pricing that scales with you." discountLabel="−20% this week" badgeLabel="Best value" />;
 
export const RemotionRoot = () => (
  <Composition
    id="PricingReveal"
    component={PricingRevealScene}
    durationInFrames={210}
    fps={60}
    width={1280}
    height={720}
  />
);

Three plan cards rise in with their features, then the featured plan lifts, strikes its old price and rolls in the new one with a discount tag and a Most picked badge, and its button is pressed. Pass plans (set featured and was on the one to highlight), heading, discountLabel and badgeLabel. It has a theme prop and ships light and dark.

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

Props18

PropTypeDefault
plans
PricingPlan[]DEFAULT_PLANS

Plan cards with `name`, `price`, `period`, `features`, `cta`; `featured` and `was` mark the highlight.

currency
string"$"

Currency symbol shown before prices.

discountLabel
string"−35% launch week"

Tag text shown next to the new price.

badgeLabel
string"Most picked"

Badge text above the featured plan.

eyebrow
string"Billed monthly · cancel anytime"

Small line above the heading.

heading
string"Simple pricing for every launch."

Main heading above the plan cards.

stagger
number3

Frames between one card entering and the next.

radius
number18

Corner radius of the plan cards.

theme
"light" | "dark""light"

Light or dark palette.

accent
string"#3B5BFD"

Accent color for the featured plan and tag.

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.

ground
GshPresetId—

Gradients.sh preset id for the background shader.

groundParams
Partial<GradientParams>—

Overrides for the background shader parameters.

  • plansPricingPlan[]

    Plan cards with `name`, `price`, `period`, `features`, `cta`; `featured` and `was` mark the highlight.

    DefaultDEFAULT_PLANS

  • currencystring

    Currency symbol shown before prices.

    Default"$"

  • discountLabelstring

    Tag text shown next to the new price.

    Default"−35% launch week"

  • badgeLabelstring

    Badge text above the featured plan.

    Default"Most picked"

  • eyebrowstring

    Small line above the heading.

    Default"Billed monthly · cancel anytime"

  • headingstring

    Main heading above the plan cards.

    Default"Simple pricing for every launch."

  • staggernumber

    Frames between one card entering and the next.

    Default3

  • radiusnumber

    Corner radius of the plan cards.

    Default18

  • theme"light" | "dark"

    Light or dark palette.

    Default"light"

  • accentstring

    Accent color for the featured plan and tag.

    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.

    Default1

  • groundGshPresetId

    Gradients.sh preset id for the background shader.

  • groundParamsPartial<GradientParams>

    Overrides for the background shader parameters.