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








