Holo

Plan Savings Morph

Component

About

Usage-based savings calculator comparing your plan against alternatives.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Plan Savings Morph to your project and fits it to your theme.

Code

How Plan Savings Morph is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import * as React from "react"
import { PlanSavingsMorph, type CostModel } from "@/components/ui/pl-savings-morph"

export default function PlanSavingsMorphDemo() {
  const plan = (u: number, annual: boolean) => (49 + Math.max(0, u - 120) * 0.12) * (annual ? 0.8 : 1)
  const alternatives: CostModel[] = [
    { id: "payg", label: "Pay as you go", cost: (u) => u * 0.38 },
    { id: "seat", label: "Per-seat suite", cost: (u) => 14 + 0.08 * u + 0.0006 * u * u },
  ]
  return <PlanSavingsMorph planName="Flow Plus" planCost={plan} alternatives={alternatives} defaultUsage={90} />
}

Dependencies

More by Holo

View all
  • Testimonial Coverflow

    Testimonial Coverflow

    68
  • Slot Week Picker

    Slot Week Picker

    65
  • Pricing Plan Tilt

    Pricing Plan Tilt

    46
  • Command Palette

    Command Palette

    31
  • Lens Reel

    Lens Reel

    30
  • Appearance Lab

    Appearance Lab

    23
  • Orbit Goals

    Orbit Goals

    19
  • Notification Matrix

    Notification Matrix

    18