Calculator Widget Testing
Test and customize the calculator widgets, then copy the embed code for your application.
Widget Configuration
Embed Code
import CalculatorWidget from '@/components/calculator-widget'
export default function MyComponent() {
return (
<div>
<CalculatorWidget />
</div>
)
}Live Preview
Integration Instructions
React Applications
Import the CalculatorWidget component and use it in your React application. The component accepts props for customization.
Vanilla JavaScript
Include the widget script and use the CalculatorWidget.mount() method to attach widgets to DOM elements.
CDN Integration
Use the CDN link for quick integration without bundling. The widget will automatically initialize based on data attributes or global configuration.
Available Props
type: 'mortgage' | 'rent' | 'investment' (default: 'mortgage')country: 'germany' | 'france' | 'usa' | 'italy' | 'uk' (default: 'germany') - Country-specific calculations and tax rulesshowNavigation: boolean (default: false) - Show calculator type switchercompact: boolean (default: false) - Minimal layout without headers/footershideTitle: boolean (default: false) - Hide title and description only, keep footertheme: 'light' | 'dark' | 'auto' (default: 'auto')className: string - Additional CSS classesonCalculate: function - Callback when calculation is performed