Back to blocks
Pricing ROI Calculator React component

What is this?

A light ROI calculator: heading plus a two-column card. Sliders on the left estimate in-house hours and rate; the right column shows the gap versus a monthly plan and the labor-time equivalent. Swap the copy and comparison amount, then drop it onto a SaaS pricing page.

Full TSX source. No account needed.

pricing-roi-calculator.tsx

"use client"; import { ArrowRight, Banknote, Check, Clock } from "lucide-react";import type { ReactNode } from "react";import { useState } from "react";import { cn } from "@/lib/utils"; const HOURS_MIN = 40;

Read the guide

BlockPass

Pricing ROI Calculator

A light ROI calculator: heading plus a two-column card. Sliders on the left estimate in-house hours and rate; the right column shows the gap versus a monthly plan and the labor-time equivalent. Swap the copy and comparison amount, then drop it onto a SaaS pricing page.

Checking access…
Live Preview

Verified Technical Spec

Animation
CSS / Tailwind
Reduced motion
Standard motion
Keyboard focus
Not detected in source
Compatibility
Tailwind CSS v3.4 + v4 · React 19 / Next.js 15 App Router + Vite / Remix compatible

Included

  • Copy source into Cursor or Claude for agent install
  • Responsive on phone, tablet, and desktop
  • Finished React · TypeScript · Tailwind CSS · Lucide UI

Dependencies

  • React 19.0.0
  • Typescript 5.7.2
  • Tailwindcss 3.4.16
  • Lucide-react 1.23.0

Tech Stack

  • React
  • TypeScript
  • Tailwind CSS
  • Lucide

Version 1.0.0