App UI kits › Roost › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
price | number | 685000 | Home price. Default 685000. |
deposit | number | 0.2 | Deposit as a fraction (0.05..0.5). Default 0.2. |
rate | number | 5.25 | Yearly rate in percent. Default 5.25. |
years | 15 | 25 | 30 | ||
autoplay | boolean | ||
onChange | (r: { monthly: number; deposit: number; rate: number; years: number }) => void |
set(o: { deposit?: number; rate?: number; years?: 15 | 25 | 30; at?: number }): voiddestroy(): voidimport RoostMortgage from './RoostMortgage';
<RoostMortgage />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Real estate app UI, USA (dollars).