Skip to content

Bavaria

Mortgage Calculator

Price, deposit, rate and term as fields with sliders, beside the monthly payment and total interest.

Live, interactive React component · light themeResponsive

About the Bavaria Mortgage Calculator

The mortgage calculator of a property page: purchase price, cash deposit, annual interest rate and loan term as number fields, each with a slider, in a hairline panel; beside it a white result panel with the estimated monthly payment as a large figure, the loan amount and the total interest as rows under hairlines, and two bars for principal and interest. It updates as you type. The sum is the standard annuity formula for a fixed rate with equal monthly payments (mortgagePayment, exported from the same file); a zero rate, a cash purchase, a blank field and a deposit above the price are handled, and an invalid figure clears the result and says so. The line under the result states that the figures are an illustration, not an offer: keep it, or say the same elsewhere on the page. The two panels sit side by side where the block is wide enough and stack otherwise. Client component.

It is part of Bavaria: chalk pages, architectural photos, sage and forest green. The style’s 93 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.

To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.