App UI kits › Mileage › Charging

Charging

Drag the charge limit along the battery and the range, the added energy and the finish time follow your finger.

Charging is a screen from Mileage, an app ui kit with 7 screens: A car infotainment UI for a wide 1920 × 720 display, with a real route on real streets and driving-safe states. Price: $5 for the whole pack.

Built with: charge-limit slider, linked range and time, nearby chargers.

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.

Charging props

PropTypeDefaultDescription
darkboolean
dayboolean
autoplayboolean
photosMYPhotos
assetsstringthe Motionmart CDN)Folder that holds fonts/archivo-*.woff2 (default: the Motionmart CDN).
onLimit(pct: number) => void

Methods on the ref

Use it in React

import MileageCharge from './MileageCharge';

<MileageCharge />

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

More in Mileage

Good for: Car dashboard UI.