App UI kits › Quits › Add expense

Add expense

Split equally, by shares or by percent and every amount re-splits live; a line says whether it adds up.

Add expense is a screen from Quits, an app ui kit with 11 screens: A bill splitting app where a scanned receipt is split by what each person had, and debts collapse into the fewest payments. Price: $5 for the whole pack.

Built with: live re-split, adds-up check, shown exchange rate.

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.

Add expense props

PropTypeDefaultDescription
darkbooleanLight by default; true gives the dark theme.
autoplayboolean
photosQtPhotos
ratenumber0.8612Pounds per euro. Default 0.8612.
onSave(e: { cents: number; payer: string; split: Record<string, number> }) => void
onClose() => void

Methods on the ref

Use it in React

import QuitsAdd from './QuitsAdd';

<QuitsAdd />

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

More in Quits

Good for: Bill splitting app UI, Europe (euro), UK (pounds).