ROI calculator preview
Compare explicit time-value assumptions with consumer-calculated costs and returns.
pro · Marketing · composite
When to use
- Use it when a page needs compare explicit time-value assumptions with consumer-calculated costs and returns.
- Choose it as the social-proof region when composing a page from independently reusable TidalUI sections.
Alternatives
- Choose feature-card instead when a feature summary with animated orbital artwork is the actual interface need, rather than roi calculator.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/roi-calculatorImport components/ui/tidal.css, components/ui/roi-calculator.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/roi-calculator.css";
import{TidalRoiCalculator}from"./components/ui/roi-calculator";
export default()=><div className="tidal-scope"><TidalRoiCalculator disclaimer={"value"} formula={"value"} inputs={[{id:"example",label:"Demo"}]} onValueChange={() => {}} results={[{id:"example",label:"Demo",value:1}]} title={"Demo"} values={{}}/></div>;API and props
TidalRoiCalculator.disclaimer (required)ReactNodeRequired disclaimer value accepted by this exported component.
TidalRoiCalculator.formula (required)ReactNodeRequired formula value accepted by this exported component.
TidalRoiCalculator.inputs (required)ReadonlyArray<TidalRoiInput>Required inputs value accepted by this exported component.
TidalRoiCalculator.onValueChange (required)(id: string, value: number | null) => voidCallback invoked when the value change interaction is proposed.
TidalRoiCalculator.results (required)ReadonlyArray<TidalRoiResult>Required results value accepted by this exported component.
TidalRoiCalculator.title (required)ReactNodeRequired title value accepted by this exported component.
TidalRoiCalculator.values (required)Readonly<Record<string, number | null>>Required values value accepted by this exported component.
TidalRoiCalculator.descriptionReactNodeOptional description value accepted by this exported component.
TidalRoiCalculator.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalRoiCalculator.errorsReadonly<Record<string, string | undefined>> | undefinedOptional errors value accepted by this exported component.
TidalRoiCalculator.inputProps((input: TidalRoiInput) => InputProps) | undefinedOptional input props value accepted by this exported component.
TidalRoiCalculator.inputRefsReadonly<Record<string, Ref<HTMLInputElement>>> | undefinedOptional input refs value accepted by this exported component.
TidalRoiCalculator.labelsPartial<{ reset: string; assumptions: string; results: string; formula: string; incomplete: string; invalid: string; }> | undefinedOptional labels value accepted by this exported component.
TidalRoiCalculator.onReset((event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the reset interaction is proposed.
TidalRoiCalculator.resetPropsResetProps | undefinedOptional reset props value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.