Component libraryROI calculator
Components/Marketing

ROI calculator

Pro

Compare explicit time-value assumptions with consumer-calculated costs and returns.

npx shadcn@latest add @tidal-pro/roi-calculator
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/roi-calculator

Import components/ui/tidal.css, components/ui/roi-calculator.css, components/ui/number-stepper.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Consumer-owned numeric assumptions and exact supplied results. Up to 12 unique inputs and 8 unique result IDs. Finite values, explicit min/max/step, missing values and validation errors are checked before results display. Results are never calculated or inferred by the component. Accepted Number stepper provides native input, keyboard and form behavior; input names/form refs and direct input refs are preserved. Optional reset is caller-first and preventable. Native root attrs/ref with React 19 cleanup, disabled state, source/body focus recovery, formula disclosure, explicit disclaimer, responsive stacking, 44px controls, 16px phone fields, RTL and reduced motion. The illustrative demo computes the displayed formulas locally and is not a prediction, financial recommendation, saving guarantee or real submission.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.