Pricing Tier Focus

Highlight the recommended pricing tier by dimming and blurring its neighbors

Installation

$ pnpm dlx shadcn@latest add @remocn/pricing-tier-focus

Usage

// src/Root.tsx
import { Composition } from "remotion";
import { PricingTierFocus } from "@/components/remocn/pricing-tier-focus";

const PricingTierFocusScene = () => (
  <PricingTierFocus focusedTier={1} accentColor="#22c55e" />
);

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

Props

PropTypeDefaultDescription
focusedTier
0 | 1 | 21Index of the tier to highlight (0 = Free, 1 = Pro, 2 = Enterprise)
accentColor
string"#22c55e"Brand color for the focused tier badge, checkmarks, and CTA button
speed
number1Multiplier applied to the current frame for global timing control
className
stringOptional className for the outer container