App UI kits › Roost › Mortgage

Mortgage

Drag the deposit and the house fills with the part you own; the monthly payment rolls and the balance curve redraws year by year under a scrub handle.

Mortgage is a screen from Roost, an app ui kit with 13 screens: A home search app where you draw your neighbourhood and walk through the plan. Price: $5 for the whole pack.

Built with: equity fill, live amortisation, scrubbable curve.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Mortgage props

PropTypeDefaultDescription
darkboolean
pricenumber685000Home price. Default 685000.
depositnumber0.2Deposit as a fraction (0.05..0.5). Default 0.2.
ratenumber5.25Yearly rate in percent. Default 5.25.
years15 | 25 | 30
autoplayboolean
onChange(r: { monthly: number; deposit: number; rate: number; years: number }) => void

Methods on the ref

Use it in React

import RoostMortgage from './RoostMortgage';

<RoostMortgage />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Roost

Good for: Real estate app UI, USA (dollars).