App UI kits › Kerb › Split the fare

Split the fare

Tap faces to add who was in the car; shares are worked out to the penny and custom amounts must add up before you can send.

Split the fare is a screen from Kerb, an app ui kit with 11 screens: A ride hailing app on a live city map, where you watch your driver accept and turn toward you. Price: $5 for the whole pack.

Built with: penny-exact split, custom steppers, request status.

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.

Split the fare props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosKbPhotos
farenumberFare to split, in pounds.
onSend(shares: { name: string; amount: number }[]) => void

Methods on the ref

Use it in React

import KerbSplit from './KerbSplit';

<KerbSplit />

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

More in Kerb

Good for: Ride hailing app UI, UK (pounds).